kubernetes-up-and-running/7-1-alpaca-prod-readiness.yaml
kammous 4f5c952545 Rename all files accordingly to kuard 2nd edition
- Move all objects, except for chapter 17 from v1beta to v1
- Fix an error on kuard image for Job chapter (#12)
2020-04-04 13:58:19 +02:00

45 lines
882 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: alpaca
env: prod
ver: "1"
name: alpaca-prod
spec:
replicas: 3
revisionHistoryLimit: 10
selector:
matchLabels:
app: alpaca
env: prod
ver: "1"
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: alpaca
env: prod
ver: "1"
spec:
containers:
- image: gcr.io/kuar-demo/kuard-amd64:blue
imagePullPolicy: IfNotPresent
name: alpaca-prod
ports:
- containerPort: 8080
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /ready
port: 8080
scheme: HTTP
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 1