This commit is contained in:
@@ -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" ]
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user