From what I can tell the environment variable POSTGRESQL_PORT is completely 
ignored. Changing it to an arbitrary number still outputs the same value of 
"postgresql-port: tcp://10.108.245.56:5432" in 
/home/guacamole/.guacamole/guacamole.properties
10.108.245.56 is the ip of the postgres service
________________________________
From: Circenn City <circ...@circenn.city>
Sent: Saturday, August 31, 2024 3:58 PM
To: user@guacamole.apache.org <user@guacamole.apache.org>
Subject: Re: Docker guacamole/guacamole:latest - Property "postgresql-port" 
must be an integer

apiVersion: 
kustomize.config.k8s.io/v1beta1<http://kustomize.config.k8s.io/v1beta1>
kind: Kustomization
namespace: guacamole

resources:
- deployment.yaml
- service.yaml
- ingress.yaml

commonLabels:
  app.kubernetes.io/name<http://app.kubernetes.io/name>: guacamole

images:
- name: guacamole/guacamole
  newTag: latest

configMapGenerator:
- name: guacamole-configmap
  literals:
  - POSTGRESQL_HOSTNAME=postgres.guacamole
  - POSTGRESQL_PORT=5432
  - POSTGRESQL_AUTO_CREATE_ACCOUNTS=true
  - GUACD_HOSTNAME=guacd.guacamole
  - GUACD_PORT=4822
  - REMOTE_IP_VALVE_ENABLED=true
transformers:
  - ../../base/_transformers
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name:  guacamole
  namespace: guacamole
  labels:
    app.kubernetes.io/name<http://app.kubernetes.io/name>: guacamole
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name<http://app.kubernetes.io/name>: guacamole
  revisionHistoryLimit: 2
  replicas: 1
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      labels:
        app.kubernetes.io/name<http://app.kubernetes.io/name>: guacamole
    spec:
      containers:
      - name: guacamole
        image: guacamole/guacamole:latest
        envFrom:
        - configMapRef:
            name: guacamole-configmap
        env:
        - name: POSTGRESQL_USER
          valueFrom:
            secretKeyRef:
              name: postgres-credentials
              key: POSTGRES_USER
        - name: POSTGRESQL_PASSWORD
          valueFrom:
            secretKeyRef:
              name: postgres-credentials
              key: POSTGRES_PASSWORD
        - name: POSTGRESQL_DATABASE
          valueFrom:
            secretKeyRef:
              name: postgres-credentials
              key: POSTGRES_DB
        ports:
        - containerPort: 8080
          name: http
      restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
  name: guacamole
  namespace: guacamole
spec:
  selector:
    app.kubernetes.io/name<http://app.kubernetes.io/name>: guacamole
  type: ClusterIP
  sessionAffinity: None
  sessionAffinityConfig:
    clientIP:
      timeoutSeconds: 10800
  ports:
  - name: guacamole
    protocol: TCP
    port: 80
    targetPort: http


On Sat, Aug 31, 2024 at 3:54 PM Nick Couchman 
<vn...@apache.org<mailto:vn...@apache.org>> wrote:


On Sat, Aug 31, 2024 at 3:52 PM Circenn City <circ...@circenn.city.invalid> 
wrote:
* Deployed via Kubernetes manifests

Please provide the manifest (minus any sensitive information).

-Nick

Reply via email to