Skip to content

Instantly share code, notes, and snippets.

@lotusirous
Created November 25, 2018 16:44
Show Gist options
  • Select an option

  • Save lotusirous/7cdaf6b7e6801a1d4e417f76d8eb308b to your computer and use it in GitHub Desktop.

Select an option

Save lotusirous/7cdaf6b7e6801a1d4e417f76d8eb308b to your computer and use it in GitHub Desktop.
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