Skip to content

Instantly share code, notes, and snippets.

@vamsijakkula
Created May 8, 2020 05:54
Show Gist options
  • Save vamsijakkula/4b5efd1e5c97cb6dfb170bb2657c9411 to your computer and use it in GitHub Desktop.
Save vamsijakkula/4b5efd1e5c97cb6dfb170bb2657c9411 to your computer and use it in GitHub Desktop.
Nginx Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: nginx
name: nginx-deploy
spec:
replicas: 1
selector:
matchLabels:
run: nginx
template:
metadata:
labels:
run: nginx
spec:
volumes:
- name: minio-pv-claim
persistentVolumeClaim:
claimName: minio-pv-claim
containers:
- image: nginx
name: nginx
volumeMounts:
- name: minio-pv-claim
mountPath: /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment