diff --git a/Pods and Containers in Kubernetes/nginx-pod.yml b/Pods and Containers in Kubernetes/nginx-pod.yml index 4f77a8d..70fa4ec 100644 --- a/Pods and Containers in Kubernetes/nginx-pod.yml +++ b/Pods and Containers in Kubernetes/nginx-pod.yml @@ -10,7 +10,8 @@ spec: - containerPort: 80 volumeMounts: - name: nginx-config-volume - mountPath: /etc/nginx + mountPath: /etc/nginx/nginx.conf + subPath: nginx.conf - name: htpasswd-volume mountPath: /etc/nginx/conf volumes: