37 lines
827 B
YAML
Executable File
37 lines
827 B
YAML
Executable File
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: store
|
|
labels:
|
|
app: store
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: store
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: store
|
|
spec:
|
|
containers:
|
|
- name: store
|
|
image: username/store:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
readinessProbe:
|
|
httpGet:
|
|
path: '/actuator/health'
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
timeoutSeconds: 2
|
|
periodSeconds: 5
|
|
failureThreshold: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: '/actuator/health'
|
|
port: 8080
|
|
initialDelaySeconds: 120
|
|
timeoutSeconds: 2
|
|
periodSeconds: 5
|
|
failureThreshold: 5 |