Add liveness probe and loadbalancer
This commit is contained in:
parent
b6e535b6ea
commit
e2e777190f
@ -24,3 +24,9 @@ spec:
|
|||||||
name: minipaste-server
|
name: minipaste-server
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
livenessProbe:
|
||||||
|
failureThreshold: 2
|
||||||
|
periodSeconds: 15
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 8080
|
||||||
|
@ -7,4 +7,5 @@ spec:
|
|||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
selector:
|
selector:
|
||||||
app: minipaste-server
|
app: minipaste-server
|
||||||
|
type: LoadBalancer
|
Loading…
Reference in New Issue
Block a user