diff --git a/Dockerfile b/Dockerfile index b1b3a9a..d0d93ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,13 +15,11 @@ COPY start.sh /usr/local/bin/start.sh # Make start script executable RUN chmod +x /usr/local/bin/start.sh -USER knot - WORKDIR /var/lib/knot VOLUME /etc/knot VOLUME /var/lib/knot -EXPOSE 8053 +EXPOSE 53 CMD [ "/usr/local/bin/start.sh" ] diff --git a/deployment/deploy-yml.tmpl b/deployment/deploy-yml.tmpl index 0541599..c229811 100644 --- a/deployment/deploy-yml.tmpl +++ b/deployment/deploy-yml.tmpl @@ -17,10 +17,10 @@ spec: image: %IMAGE% ports: - name: dns-tcp - containerPort: 8053 + containerPort: 53 protocol: TCP - name: dns-udp - containerPort: 8053 + containerPort: 53 protocol: UDP env: - name: KNOT_USER @@ -39,12 +39,12 @@ spec: cpu: "500m" livenessProbe: tcpSocket: - port: 8053 + port: 53 initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: tcpSocket: - port: 8053 + port: 53 initialDelaySeconds: 5 periodSeconds: 5 volumes: @@ -66,11 +66,11 @@ spec: ports: - name: dns-tcp port: 53 - targetPort: 8053 + targetPort: 53 protocol: TCP - name: dns-udp port: 53 - targetPort: 8053 + targetPort: 53 protocol: UDP --- apiVersion: v1