Fred Damstra (k8s1) 2 년 전
부모
커밋
0f67167718
2개의 변경된 파일15개의 추가작업 그리고 4개의 파일을 삭제
  1. 11 0
      Dockerfile
  2. 4 4
      k8s.update-route53.yaml

+ 11 - 0
Dockerfile

@@ -1,4 +1,15 @@
 FROM ubuntu:latest
+LABEL maintainer="fred.damstra@gmail.com"
+LABEL version="0.1"
+LABEL description="Docker image that updates a route53 zone record with the current IP (home grown dynip)"
+
+# Never prompt
+ARG DEBIAN_FRONTEND=noninteractive
+
+RUN apt update \
+  && apt install -y curl \
+  && rm -rf /var/lib/apt/lists/* \
+  && apt clean
 
 COPY . /opt/update-route53
 RUN chmod 755 /opt/update-route53/update-route53.sh \

+ 4 - 4
k8s.update-route53.yaml

@@ -52,10 +52,10 @@ spec:
           - name: AWS_DEFAULT_REGION
             value: us-east-2
         envFrom:
-          - SecretRef:
-            name: AWS_CREDS
-          - SecretRef:
-            name: UPDATE_ROUTE53
+          - secretRef:
+              name: aws-creds
+          - secretRef:
+              name: update-route53
         volumeMounts:
         - name: docker-config
           mountPath: /kaniko/.docker/