21 lines
342 B
YAML
21 lines
342 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: nginx-cm
|
|
labels:
|
|
role: web
|
|
spec:
|
|
containers:
|
|
- name: nginx-cm
|
|
image: nginx
|
|
volumeMounts:
|
|
- name: conf
|
|
mountPath: /etc/nginx/conf.d
|
|
volumes:
|
|
- name: conf
|
|
configMap:
|
|
name: nginx-cm
|
|
items:
|
|
- key: nginx-custom-config.conf
|
|
path: default.conf
|