Add liveness probe and loadbalancer

This commit is contained in:
Torjus Håkestad 2022-04-20 17:11:11 +00:00
parent b6e535b6ea
commit e2e777190f
2 changed files with 8 additions and 1 deletions

View File

@ -24,3 +24,9 @@ spec:
name: minipaste-server
ports:
- containerPort: 8080
livenessProbe:
failureThreshold: 2
periodSeconds: 15
httpGet:
path: /
port: 8080

View File

@ -8,3 +8,4 @@ spec:
targetPort: 8080
selector:
app: minipaste-server
type: LoadBalancer