I have following simple Nginx deployment in Kubernetes
kind: Deployment
apiVersion: apps/v1
metadata:
name: nginx
namespace: website-dev
labels:
app: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
imagePullPolicy: Always
ports:
- name: nginx-port
containerPort: 80
protocol: TCP
volumeMounts:
- name: example-conf
mountPath: /etc/nginx/conf.d/
readOnly: true
volumes:
- name: example-conf
configMap:
name: example-conf
items:
- key: example.conf
path: example.conf
But I am experiencing it gets killed frequently with
"GET / HTTP/1.1", upstream: "http://172.20.148.7:80/", host: "dev.example.com"
2024/06/21 14:58:26 [notice] 1#1: signal 3 (SIGQUIT) received, shutting down
2024/06/21 14:58:26 [notice] 20#20: gracefully shutting down
2024/06/21 14:58:26 [notice] 20#20: exiting
2024/06/21 14:58:26 [notice] 20#20: exit
2024/06/21 14:58:26 [notice] 21#21: gracefully shutting down
2024/06/21 14:58:26 [notice] 21#21: exiting
2024/06/21 14:58:26 [notice] 22#22: gracefully shutting down
2024/06/21 14:58:26 [notice] 22#22: exiting
2024/06/21 14:58:26 [notice] 22#22: exit
2024/06/21 14:58:26 [notice] 21#21: exit
2024/06/21 14:58:26 [notice] 23#23: gracefully shutting down
2024/06/21 14:58:26 [notice] 23#23: exiting
2024/06/21 14:58:26 [notice] 23#23: exit
2024/06/21 14:58:26 [notice] 1#1: signal 17 (SIGCHLD) received from 22
2024/06/21 14:58:26 [notice] 1#1: worker process 22 exited with code 0
2024/06/21 14:58:26 [notice] 1#1: signal 29 (SIGIO) received
2024/06/21 14:58:26 [notice] 1#1: signal 17 (SIGCHLD) received from 20
2024/06/21 14:58:26 [notice] 1#1: worker process 20 exited with code 0
2024/06/21 14:58:26 [notice] 1#1: signal 29 (SIGIO) received
2024/06/21 14:58:26 [notice] 1#1: signal 17 (SIGCHLD) received from 23
2024/06/21 14:58:26 [notice] 1#1: worker process 23 exited with code 0
2024/06/21 14:58:26 [notice] 1#1: signal 29 (SIGIO) received
2024/06/21 14:58:26 [notice] 1#1: signal 17 (SIGCHLD) received from 21
2024/06/21 14:58:26 [notice] 1#1: worker process 21 exited with code 0
2024/06/21 14:58:26 [notice] 1#1: exit
rpc error: code = NotFound desc = an error occurred when try to find container "aa788bd2b1b0aa05a0676c93431f7265e62ee2a310a10ba4819a13c7abf10500": not found
any help on this ?