Skip to content

Instantly share code, notes, and snippets.

@ShahriyarR
Created September 27, 2020 13:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShahriyarR/b36e5cea4ac0b05825145d80415539d9 to your computer and use it in GitHub Desktop.
Save ShahriyarR/b36e5cea4ac0b05825145d80415539d9 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment # 1
metadata:
name: sa-frontend
spec:
replicas: 2 # 2
selector:
matchLabels:
app: sa-frontend
minReadySeconds: 15
strategy:
type: RollingUpdate # 3
rollingUpdate:
maxUnavailable: 1 # 4
maxSurge: 1 # 5
template: # 6
metadata:
labels:
app: sa-frontend
spec:
containers:
- name: sa-frontend
image: sentiment-analysis-frontend:0.1
imagePullPolicy: Never
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment