Skip to content

Instantly share code, notes, and snippets.

@sachin-slathia
Created December 10, 2019 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sachin-slathia/9760f7d46e56a30284fdf379299810d0 to your computer and use it in GitHub Desktop.
Save sachin-slathia/9760f7d46e56a30284fdf379299810d0 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
environment: production
app: nginx
spec:
containers:
- name: nginx
image: nginx
volumeMounts:
- name: config-volume
mountPath: /usr/share/nginx/html
volumes:
- name: config-volume
configMap:
name: nginx-config
restartPolicy: Never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment