Skip to content

Instantly share code, notes, and snippets.

@vigneshragupathy
Created September 30, 2018 08:35
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 vigneshragupathy/948caaa5bd58a95f9f9e150d7daaa0e2 to your computer and use it in GitHub Desktop.
Save vigneshragupathy/948caaa5bd58a95f9f9e150d7daaa0e2 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
labels:
run: nginx
name: nginx-nfs-pv
namespace: default
spec:
replicas: 1
selector:
matchLabels:
run: nginx
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
run: nginx
spec:
containers:
- image: nginx
imagePullPolicy: Always
name: nginx
volumeMounts:
- name: nfs-vol
mountPath: /opt
ports:
- containerPort: 80
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumes:
- name: nfs-vol
persistentVolumeClaim:
claimName: pvc-one-vikki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment