apiVersion: apps/v1 kind: Deployment metadata: labels: app: nginx name: nginx spec: selector: matchLabels: app: nginx replicas: 1 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx ports: - containerPort: 80 volumeMounts: - name: nginx-configs mountPath: /etc/nginx/conf.d # Load the configuration files for nginx volumes: - name: nginx-configs configMap: name: nginx-config