This commit is contained in:
@@ -15,13 +15,11 @@ COPY start.sh /usr/local/bin/start.sh
|
|||||||
# Make start script executable
|
# Make start script executable
|
||||||
RUN chmod +x /usr/local/bin/start.sh
|
RUN chmod +x /usr/local/bin/start.sh
|
||||||
|
|
||||||
USER knot
|
|
||||||
|
|
||||||
WORKDIR /var/lib/knot
|
WORKDIR /var/lib/knot
|
||||||
VOLUME /etc/knot
|
VOLUME /etc/knot
|
||||||
VOLUME /var/lib/knot
|
VOLUME /var/lib/knot
|
||||||
|
|
||||||
EXPOSE 8053
|
EXPOSE 53
|
||||||
|
|
||||||
CMD [ "/usr/local/bin/start.sh" ]
|
CMD [ "/usr/local/bin/start.sh" ]
|
||||||
|
|
||||||
|
|||||||
@@ -17,10 +17,10 @@ spec:
|
|||||||
image: %IMAGE%
|
image: %IMAGE%
|
||||||
ports:
|
ports:
|
||||||
- name: dns-tcp
|
- name: dns-tcp
|
||||||
containerPort: 8053
|
containerPort: 53
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: dns-udp
|
- name: dns-udp
|
||||||
containerPort: 8053
|
containerPort: 53
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
env:
|
env:
|
||||||
- name: KNOT_USER
|
- name: KNOT_USER
|
||||||
@@ -39,12 +39,12 @@ spec:
|
|||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: 8053
|
port: 53
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: 8053
|
port: 53
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
volumes:
|
volumes:
|
||||||
@@ -66,11 +66,11 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: dns-tcp
|
- name: dns-tcp
|
||||||
port: 53
|
port: 53
|
||||||
targetPort: 8053
|
targetPort: 53
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: dns-udp
|
- name: dns-udp
|
||||||
port: 53
|
port: 53
|
||||||
targetPort: 8053
|
targetPort: 53
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|||||||
Reference in New Issue
Block a user