Spring Boot Actuator + Kubernetes
Issue: BAEL-2356
This commit is contained in:
committed by
Josh Cummings
parent
5dec6f7006
commit
e51a0d0428
@@ -0,0 +1,54 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: liveness-example
|
||||
spec:
|
||||
selector:
|
||||
app: liveness-example
|
||||
ports:
|
||||
- port: 8080
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: liveness-example
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: liveness-example
|
||||
replicas: 1
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxUnavailable: 0
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: liveness-example
|
||||
spec:
|
||||
containers:
|
||||
- name: liveness-example
|
||||
image: dbdock/liveness-example:1.0.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
resources:
|
||||
requests:
|
||||
memory: 400Mi
|
||||
cpu: 400m
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8080
|
||||
initialDelaySeconds: 10
|
||||
timeoutSeconds: 2
|
||||
periodSeconds: 3
|
||||
failureThreshold: 1
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8080
|
||||
initialDelaySeconds: 20
|
||||
timeoutSeconds: 2
|
||||
periodSeconds: 8
|
||||
failureThreshold: 1
|
||||
@@ -0,0 +1,54 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: readiness-example
|
||||
spec:
|
||||
selector:
|
||||
app: readiness-example
|
||||
ports:
|
||||
- port: 8080
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: readiness-example
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: readiness-example
|
||||
replicas: 1
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxUnavailable: 0
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: readiness-example
|
||||
spec:
|
||||
containers:
|
||||
- name: readiness-example
|
||||
image: dbdock/readiness-example:1.0.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
resources:
|
||||
requests:
|
||||
memory: 400Mi
|
||||
cpu: 400m
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8080
|
||||
initialDelaySeconds: 40
|
||||
timeoutSeconds: 2
|
||||
periodSeconds: 3
|
||||
failureThreshold: 5
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8080
|
||||
initialDelaySeconds: 100
|
||||
timeoutSeconds: 2
|
||||
periodSeconds: 8
|
||||
failureThreshold: 1
|
||||
Reference in New Issue
Block a user