nignx-configmap
Posted director
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nignx-configmap相关的知识,希望对你有一定的参考价值。
apiVersion: apps/v1 kind: Deployment metadata: name: nginx spec: replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: app: nginx name: ngnx spec: containers: - name: nginx image: nginx:1.7.9 ports: - containerPort: 80 volumeMounts: - name: config-volume mountPath: /etc/nginx/conf.d/default1.conf subPath: default1.conf - name: config-volume mountPath: /etc/nginx/conf.d/defualt2.conf subPath: default2.conf - name: config-volume2 mountPath: /etc/nginx/conf.d/conf.d/default3.conf subPath: default3.conf volumes: - name: config-volume configMap: name: nginx-configmap1 items: - key: default1.conf path: default1.conf - key: default2.conf path: default2.conf - name: config-volume2 configMap: name: nginx-configmap2 items: - key: default1.conf path: default3.conf
以上是关于nignx-configmap的主要内容,如果未能解决你的问题,请参考以下文章