78 lines
2.2 KiB
YAML
78 lines
2.2 KiB
YAML
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
|
|
image: bv11-cr01.bessems.eu/proxy/guacamole/guacamole:1.4.0
|
|
# image: bv11-cr01.bessems.eu/proxy/guacamole/guacamole:1.5.0
|
|
env:
|
|
- name: GUACD_HOSTNAME
|
|
value: 'guacamole.guacamole.svc.cluster.local'
|
|
- name: MYSQL_HOSTNAME
|
|
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
|
|
# - name: flexvolsmb-guacamole-opt
|
|
# mountPath: /opt/guacamole/mysql/mysql-connector-java-5.1.46.jar
|
|
# subPath: mysql-connector-java-5.1.46.jar
|
|
ports:
|
|
- name: ui
|
|
containerPort: 8080
|
|
- name: guacd
|
|
image: bv11-cr01.bessems.eu/proxy/guacamole/guacd:1.4.0
|
|
# image: bv11-cr01.bessems.eu/proxy/guacamole/guacd:1.5.0
|
|
env:
|
|
- name: GUACD_LOG_LEVEL
|
|
value: 'debug'
|
|
ports:
|
|
- name: proxy
|
|
containerPort: 4822
|
|
- name: mysql
|
|
image: bv11-cr01.bessems.eu/proxy/library/mysql:latest
|
|
securityContext:
|
|
runAsUser: 999
|
|
runAsGroup: 999
|
|
env:
|
|
- name: MYSQL_RANDOM_ROOT_PASSWORD
|
|
value: 'true'
|
|
envFrom:
|
|
- secretRef:
|
|
name: guacamole-db-secret
|
|
volumeMounts:
|
|
- name: flexvolsmb-guacamole-db
|
|
mountPath: /var/lib/mysql
|
|
ports:
|
|
- name: db
|
|
containerPort: 3306
|
|
volumes:
|
|
- name: flexvolsmb-guacamole-db
|
|
persistentVolumeClaim:
|
|
claimName: flexvolsmb-guacamole-db
|
|
- name: flexvolsmb-guacamole-home
|
|
persistentVolumeClaim:
|
|
claimName: flexvolsmb-guacamole-home
|
|
# - name: flexvolsmb-guacamole-opt
|
|
# persistentVolumeClaim:
|
|
# claimName: flexvolsmb-guacamole-opt
|