This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: numbers-api
labels:
kiamol: ch12
spec:
replicas: 2
selector:
matchLabels:
app: numbers-api
template:
metadata:
labels:
app: numbers-api
version: v3
spec:
restartPolicy: Always
containers:
- name: api
image: kiamol/ch03-numbers-api
ports:
- containerPort: 80
name: api
env:
- name: FailAfterCallCount
value: "1"
readinessProbe:
httpGet:
path: /healthz
port: 80
periodSeconds: 5
livenessProbe:
httpGet:
path: /healthz
port: 80
periodSeconds: 10
initialDelaySeconds: 10
failureThreshold: 2

View File

@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: numbers-api
labels:
kiamol: ch12
spec:
replicas: 2
selector:
matchLabels:
app: numbers-api
template:
metadata:
labels:
app: numbers-api
version: v2
spec:
restartPolicy: Always
containers:
- name: api
image: kiamol/ch03-numbers-api
ports:
- containerPort: 80
name: api
env:
- name: FailAfterCallCount
value: "1"
readinessProbe:
httpGet:
path: /healthz
port: 80
periodSeconds: 5