Closed bkkoli closed 1 year ago
An error occurs when the container starts with a password including #.
But After I remove # in POSTGRES_PASSWORD, It works properly.
kartoza/postgis:15-3.3
configmap.yaml
apiVersion: v1 kind: ConfigMap metadata: name: postgis-config namespace: geoserver data: POSTGRES_HOST_AUTH_METHOD: "password" POSTGRES_PASSWORD: "#test1234" POSTGRES_USER: "postgres"
pod.yaml
piVersion: apps/v1 kind: Deployment metadata: name: postgis namespace: geoserver spec: replicas: 1 selector: matchLabels: app: postgis template: metadata: labels: app: postgis spec: containers: - name: postgis image: kartoza/postgis:15-3.3 volumeMounts: - mountPath: /var/lib/postgresql name: postgis-data ports: - containerPort: 5432 envFrom: - configMapRef: name: postgis-config imagePullPolicy: Always volumes: - name: postgis-data persistentVolumeClaim: claimName: postgis-data
service.yaml
apiVersion: v1 kind: Service metadata: name: postgis namespace: geoserver spec: type: ClusterIP clusterIP: None selector: app: postgis ports: - name: "5432" port: 5432 targetPort: 5432 sessionAffinity: None
pvc.yaml
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: postgis-data namespace: geoserver spec: storageClassName: csi-cephfs-sc accessModes: - ReadWriteMany resources: requests: storage: 10Gi
This is not a bug, you need to escape special characters https://forums.docker.com/t/escaping-characters-for-environment-variables-in-dockerfiles/125273
What is the bug or the crash?
An error occurs when the container starts with a password including #.
But After I remove # in POSTGRES_PASSWORD, It works properly.
Steps to reproduce the issue
Versions
kartoza/postgis:15-3.3
Additional context
configmap.yaml
pod.yaml
service.yaml
pvc.yaml