Skip to content

Instantly share code, notes, and snippets.

@WoodProgrammer
Created July 28, 2018 00:07
Show Gist options
  • Select an option

  • Save WoodProgrammer/a36ce721d3587f7c280182a02b3c09af to your computer and use it in GitHub Desktop.

Select an option

Save WoodProgrammer/a36ce721d3587f7c280182a02b3c09af to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx-yazi
spec:
replicas: 3
selector:
matchLabels:
service: http-server
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 5
template:
metadata:
labels:
service: http-server
spec:
containers:
- name: nginx
image: nginx:1.13.8
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment