Created
November 25, 2018 16:44
-
-
Save lotusirous/7cdaf6b7e6801a1d4e417f76d8eb308b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: nginx-proxy | |
| labels: | |
| proxy: nginx | |
| spec: | |
| template: | |
| metadata: | |
| labels: | |
| proxy: nginx | |
| spec: | |
| terminationGracePeriodSeconds: 5 | |
| containers: | |
| - name: nginx-proxy | |
| image: nginx:alpine | |
| ports: | |
| - name: http | |
| containerPort: 80 | |
| volumeMounts: | |
| - name: config-volume | |
| mountPath: /etc/nginx/nginx.conf | |
| subPath: nginx.conf | |
| volumes: | |
| - name: config-volume | |
| configMap: | |
| name: nginx-main-config | |
| # map file in directory here | |
| items: | |
| - key: nginx.conf | |
| path: nginx.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment