Kubernetes.K3s.installLog/services/Guacamole/deployment-Guacamole.yml

80 lines
2.0 KiB
YAML
Raw Normal View History

2023-03-03 11:31:06 +01:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: guacamole
namespace: guacamole
labels:
app: guacamole
spec:
replicas: 1
selector:
matchLabels:
app: guacamole
template:
metadata:
labels:
app: guacamole
spec:
hostname: guacamole
containers:
- name: guacamole
2024-04-24 10:42:29 +10:00
image: guacamole/guacamole:1.5.5
2023-03-03 11:31:06 +01:00
env:
- name: GUACD_HOSTNAME
value: 'guacamole.guacamole.svc.cluster.local'
2024-05-28 12:26:29 +10:00
- name: POSTGRESQL_HOSTNAME
2023-03-03 11:31:06 +01:00
value: 'guacamole.guacamole.svc.cluster.local'
- name: GUACAMOLE_HOME
value: '/etc/guacamole'
envFrom:
- secretRef:
name: guacamole-db-secret
volumeMounts:
- name: flexvolsmb-guacamole-home
mountPath: /etc/guacamole
ports:
- name: ui
containerPort: 8080
livenessProbe:
httpGet:
port: ui
2025-02-18 19:47:02 +11:00
path: /guacamole
2023-03-03 11:31:06 +01:00
- name: guacd
2024-04-24 10:42:29 +10:00
image: guacamole/guacd:1.5.5
2023-03-03 11:31:06 +01:00
env:
- name: GUACD_LOG_LEVEL
value: 'debug'
ports:
- name: proxy
containerPort: 4822
livenessProbe:
tcpSocket:
port: 4822
2024-05-28 12:26:29 +10:00
- name: db
image: postgres:16-alpine
2023-03-03 11:31:06 +01:00
securityContext:
2024-05-28 12:26:29 +10:00
runAsUser: 70
runAsGroup: 70
2023-03-03 11:31:06 +01:00
env:
2024-05-28 12:26:29 +10:00
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
2023-03-03 11:31:06 +01:00
envFrom:
- secretRef:
name: guacamole-db-secret
volumeMounts:
- name: flexvolsmb-guacamole-db
2024-05-28 12:26:29 +10:00
mountPath: /var/lib/postgresql/data
2023-03-03 11:31:06 +01:00
ports:
- name: db
2024-05-28 12:26:29 +10:00
containerPort: 5432
livenessProbe:
exec:
command: ["pg_isready" ,"-U" ,"$POSTGRES_USER", "-d" ,"$POSTGRES_DATABASE"]
2023-03-03 11:31:06 +01:00
volumes:
- name: flexvolsmb-guacamole-db
persistentVolumeClaim:
claimName: flexvolsmb-guacamole-db
- name: flexvolsmb-guacamole-home
persistentVolumeClaim:
claimName: flexvolsmb-guacamole-home