Add liveness probes to Guacamole containers
This commit is contained in:
parent
b0b7e5d102
commit
6432c07eb3
@ -35,6 +35,12 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: ui
|
- name: ui
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
port: ui
|
||||||
|
path: /
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 5
|
||||||
- name: guacd
|
- name: guacd
|
||||||
image: guacamole/guacd:1.5.5
|
image: guacamole/guacd:1.5.5
|
||||||
env:
|
env:
|
||||||
@ -43,6 +49,11 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: proxy
|
- name: proxy
|
||||||
containerPort: 4822
|
containerPort: 4822
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 4822
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 5
|
||||||
- name: db
|
- name: db
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
securityContext:
|
securityContext:
|
||||||
@ -60,6 +71,11 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: db
|
- name: db
|
||||||
containerPort: 5432
|
containerPort: 5432
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command: ["pg_isready" ,"-U" ,"$POSTGRES_USER", "-d" ,"$POSTGRES_DATABASE"]
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
volumes:
|
volumes:
|
||||||
- name: flexvolsmb-guacamole-db
|
- name: flexvolsmb-guacamole-db
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
Loading…
Reference in New Issue
Block a user