matrix-postgresql created 2024-09-14 22:46:57, version 3508118850

kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"apps/v1","kind":"State...

Spec

podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
  matchLabels:
    app.kubernetes.io/component: primary
    app.kubernetes.io/instance: matrix
    app.kubernetes.io/name: postgresql
serviceName: matrix-postgresql-hl
template:
  metadata:
    creationTimestamp: null
    labels:
      app.kubernetes.io/component: primary
      app.kubernetes.io/instance: matrix
      app.kubernetes.io/managed-by: Helm
      app.kubernetes.io/name: postgresql
      app.kubernetes.io/version: 15.4.0
      helm.sh/chart: postgresql-12.12.10
    name: matrix-postgresql
  spec:
    affinity:
      podAntiAffinity:
        preferredDuringSchedulingIgnoredDuringExecution:
        - podAffinityTerm:
            labelSelector:
              matchLabels:
                app.kubernetes.io/component: primary
                app.kubernetes.io/instance: matrix
                app.kubernetes.io/name: postgresql
            topologyKey: kubernetes.io/hostname
          weight: 1
    containers:
    - env:
      - name: BITNAMI_DEBUG
        value: 'false'
      - name: POSTGRESQL_PORT_NUMBER
        value: '5432'
      - name: POSTGRESQL_VOLUME_DIR
        value: /bitnami/postgresql
      - name: PGDATA
        value: /bitnami/postgresql/data
      - name: POSTGRES_USER
        value: synapse
      - name: POSTGRES_PASSWORD
        valueFrom:
          secretKeyRef:
            key: password
            name: matrix-postgresql
      - name: POSTGRES_POSTGRES_PASSWORD
        valueFrom:
          secretKeyRef:
            key: postgres-password
            name: matrix-postgresql
      - name: POSTGRES_DATABASE
        value: synapse
      - name: POSTGRES_INITDB_ARGS
        value: --lc-collate=C --lc-ctype=C
      - name: POSTGRESQL_ENABLE_LDAP
        value: 'no'
      - name: POSTGRESQL_ENABLE_TLS
        value: 'no'
      - name: POSTGRESQL_LOG_HOSTNAME
        value: 'false'
      - name: POSTGRESQL_LOG_CONNECTIONS
        value: 'false'
      - name: POSTGRESQL_LOG_DISCONNECTIONS
        value: 'false'
      - name: POSTGRESQL_PGAUDIT_LOG_CATALOG
        value: 'off'
      - name: POSTGRESQL_CLIENT_MIN_MESSAGES
        value: error
      - name: POSTGRESQL_SHARED_PRELOAD_LIBRARIES
        value: pgaudit
      image: docker.io/bitnami/postgresql:15.4.0-debian-11-r45
      imagePullPolicy: IfNotPresent
      livenessProbe:
        exec:
          command:
          - /bin/sh
          - -c
          - exec pg_isready -U "synapse" -d "dbname=synapse" -h 127.0.0.1 -p 5432
        failureThreshold: 6
        initialDelaySeconds: 30
        periodSeconds: 10
        successThreshold: 1
        timeoutSeconds: 5
      name: postgresql
      ports:
      - containerPort: 5432
        name: tcp-postgresql
        protocol: TCP
      readinessProbe:
        exec:
          command:
          - /bin/sh
          - -c
          - -e
          - 'exec pg_isready -U "synapse" -d "dbname=synapse" -h 127.0.0.1 -p 5432

            [ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized
            ]

            '
        failureThreshold: 6
        initialDelaySeconds: 5
        periodSeconds: 10
        successThreshold: 1
        timeoutSeconds: 5
      resources:
        requests:
          cpu: 250m
          memory: 256Mi
      securityContext:
        allowPrivilegeEscalation: false
        capabilities:
          drop:
          - ALL
        runAsGroup: 0
        runAsNonRoot: true
        runAsUser: 1001
        seccompProfile:
          type: RuntimeDefault
      terminationMessagePath: /dev/termination-log
      terminationMessagePolicy: File
      volumeMounts:
      - mountPath: /dev/shm
        name: dshm
      - mountPath: /bitnami/postgresql
        name: data
    dnsPolicy: ClusterFirst
    restartPolicy: Always
    schedulerName: default-scheduler
    securityContext:
      fsGroup: 1001
    serviceAccount: default
    serviceAccountName: default
    terminationGracePeriodSeconds: 30
    volumes:
    - emptyDir:
        medium: Memory
      name: dshm
updateStrategy:
  rollingUpdate:
    partition: 0
  type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
  kind: PersistentVolumeClaim
  metadata:
    creationTimestamp: null
    name: data
  spec:
    accessModes:
    - ReadWriteOnce
    resources:
      requests:
        storage: 16Gi
    volumeMode: Filesystem
  status:
    phase: Pending

Status

collisionCount: 0
currentReplicas: 1
currentRevision: matrix-postgresql-866767dfd9
observedGeneration: 1
readyReplicas: 1
replicas: 1
updateRevision: matrix-postgresql-866767dfd9
updatedReplicas: 1

Pods

Name Ready Status Restarts Age IP Node Nominated Node Readiness Gates Created
matrix-postgresql-0 1/1 Running 13 405d 172.18.117.194 sed-infra-server-master-mcg58ax2-aa1e3892 <none> <none> 2024-09-14 22:46:57

Events

Type Reason Age From Message
No events found.