Reconfigure Guacamole backend

This commit is contained in:
Danny Bessems 2024-05-28 12:26:29 +10:00
parent e23e02e245
commit b6b6bf0b6f
4 changed files with 35 additions and 15 deletions

View File

@ -18,12 +18,11 @@ spec:
hostname: guacamole
containers:
- name: guacamole
# image: bv11-cr01.bessems.eu/proxy/guacamole/guacamole:1.5.3
image: guacamole/guacamole:1.5.5
env:
- name: GUACD_HOSTNAME
value: 'guacamole.guacamole.svc.cluster.local'
- name: MYSQL_HOSTNAME
- name: POSTGRESQL_HOSTNAME
value: 'guacamole.guacamole.svc.cluster.local'
- name: GUACAMOLE_HOME
value: '/etc/guacamole'
@ -37,7 +36,6 @@ spec:
- name: ui
containerPort: 8080
- name: guacd
# image: bv11-cr01.bessems.eu/proxy/guacamole/guacd:1.5.3
image: guacamole/guacd:1.5.5
env:
- name: GUACD_LOG_LEVEL
@ -45,24 +43,23 @@ spec:
ports:
- name: proxy
containerPort: 4822
- name: mysql
# image: bv11-cr01.bessems.eu/proxy/library/mysql:latest
image: mysql:latest
- name: db
image: postgres:16-alpine
securityContext:
runAsUser: 999
runAsGroup: 999
runAsUser: 70
runAsGroup: 70
env:
- name: MYSQL_RANDOM_ROOT_PASSWORD
value: 'true'
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
envFrom:
- secretRef:
name: guacamole-db-secret
volumeMounts:
- name: flexvolsmb-guacamole-db
mountPath: /var/lib/mysql
mountPath: /var/lib/postgresql/data
ports:
- name: db
containerPort: 3306
containerPort: 5432
volumes:
- name: flexvolsmb-guacamole-db
persistentVolumeClaim:

View File

@ -13,7 +13,7 @@ spec:
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0755,dir_mode=0755,uid=999,gid=999,iocharset=utf8,nobrl
opts: file_mode=0755,dir_mode=0700,uid=70,gid=70,iocharset=utf8,nobrl
server: 192.168.154.225
share: /K3s.Volumes/guacamole/db
---
@ -32,6 +32,6 @@ spec:
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0755,dir_mode=0755,uid=999,gid=999,iocharset=utf8
opts: file_mode=0755,dir_mode=0755,iocharset=utf8
server: 192.168.154.225
share: /K3s.Volumes/guacamole/home

View File

@ -0,0 +1,23 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: guacamole-db-secret
namespace: guacamole
spec:
encryptedData:
POSTGRES_DATABASE: AgA0C44YvrKsG2WUUm5+7tqX8RRtMquYLbFa4iUZHSHZs/ZCWy+JGw+O3Ig/hGrPPOGglGVMvqfDRVeERuCz9jQND7jBP5Oe5pROwFbt0ekB1QKm3BLWKJKoIj2ltSWtNUcWARwAbNk/8uclRFv1De3vfEGRPBnsOhVjToT3Qph36nGQgeHCybvDw6Xgf8A8I2F8RGCnGtxqWIr4eZKHVEPHBPxoxHPz/xit9vNfgw+yK3n630PNqp+Bu4o1N7DDiurD+MIV/RvzAP1Jhqg7n6U5tvTAFfEF8yUfQd/LNdZAkiYcTnYG4JwK133kuNZIRIdvP6E5S+3xQocsEKNY4ZDGgw6KWQchXEOOp+i7mOjGhXcF4bryp5Z2bi4iOvQ55Cwr90GiWCsZ1g9J3vDkRH+1D2UiSMDQy0aFhnKEBoLbumoN411sa0oxefGqJbNpn8pe3VO0mI9k0mXCvsTLDf1/RA5a1YwuRo/6Q6ZMd/VxZ9FimllmC2WYl0bdaJ6A7NFv8WfrsR4phM/Hj1nTtTvkbmDq0zAVcRrnKOIYT+To2TYtnpwdGjrMuIdIgjbwo8o2Pn0zvrwe0azV8TKlsS8F8PHkhUZtkfdniEJ+6FVAlhmNgCqcpuqdYWT6qwpXX0ZlfzbWS7Nt1ZvYH6/IOHq7p5djgddr6bn35WY6iq4hdpbJrg7UYF+CANUAMCLQEGT92UI45J9JJWU=
POSTGRES_PASSWORD: AgBFg6OidnqhbEKtnMxChooiuK3G/X/fwhJ832aSVL4T2p07C/1UPRtIImVrZA63prgvSLq1iqJKGTtw6GwEcEP7s++HbHjDMyKScvKJMpLhckY7YHl4gEQxXNZkWobmKwliaH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gNp7Fyqvx7rfq/U+sXnGdPgcg1HBvPZmExq8iwb0pp3qjMpzyFp7mVYXqGIJFAY6ZqLU88o3Zscbmws+Nn9w2fBXRAHC+/1XPn0nqDBI7dyhQVLy2cpkX0rRBd05bks3WoPUlqxr9jCWRmeIxYSBguPNcaxPWDLUofcC7OroucUCfgqr0jzPaPiAwmB/Tnj5L0SNIs7APRArzrznxeZA1cOCu6dbsHe9tDUcuoUa53zBpRxYcDUTTJ43Y6NX4QA0ui+HsJQAV4k/smneVY2iDx9Iug3R+4s=
template:
data: null
metadata:
creationTimestamp: null
labels:
app: guacamole
name: guacamole-db-secret
namespace: guacamole
type: Opaque

View File

@ -13,6 +13,6 @@ spec:
port: 4822
- protocol: TCP
name: db
port: 3306
port: 5432
selector:
app: guacamole