Fred Damstra (k8s1) 2 years ago
parent
commit
0f67167718
2 changed files with 15 additions and 4 deletions
  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/