Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
devops:setup_pgadmin_on_kubernetes [2021/02/10 09:13] – [Проблемы] admindevops:setup_pgadmin_on_kubernetes [2021/02/10 21:13] – [Проблемы] admin
Line 115: Line 115:
       securityContext:       securityContext:
         runAsUser: 0</code>         runAsUser: 0</code>
 +  * В файле values родительского чарта записи такие:
 +<code>
 +global:
 +  environment: dev
 +  postgresql: 
 +    fullnameOverride: postgresql
 +    postgresqlUsername: api-user
 +    postgresqlPassword: tvJk3XrqM3d7xX6b
 +    postgresqlDatabase: sbl-mobile-api
 +    service:
 +      port: 5432
 +...
 +postgresql:
 +  enabled: true
 +  fullnameOverride: postgresq
 +...
 +pgadmin4:
 +  serverDefinitions:
 +  #defined in _helpers.tpl - "pgadmin.serverDefinitions"
 +    enabled: true
 +  extraSecretMounts:
 +  - name: pgpassfile
 +    secret: pgpassfile
 +    subPath: pgpassfile
 +    mountPath: "/pgpass"
 +    readOnly: true
 +  extraInitContainers: |
 +    - name: pgpass-permissions-init
 +      image: "docker.rdleas.ru/dpage/pgadmin4:4.29"
 +      command:
 +      - "/bin/ash"
 +      - "-c"
 +      - "/bin/mkdir -p /var/lib/pgadmin/storage/pgadmin && /bin/cp /pgpass /var/lib/pgadmin/storage/pgadmin/pgpass && /bin/chmod 0600 /var/lib/pgadmin/storage/pgadmin/pgpass"
 +      securityContext:
 +        runAsUser: 0
 +      volumeMounts:
 +      - mountPath: /pgpass
 +        name: pgpassfile
 +        readOnly: false
 +        subPath: pgpassfile
 +      - mountPath: /var/lib/pgadmin
 +        name: pgadmin-data
 +  persistentVolume:
 +    enabled: false
 +  securityContext:
 +    runAsUser: 0
 +    runAsGroup: 0
 +    fsGroup: 0
 +</code>
  • devops/setup_pgadmin_on_kubernetes.txt
  • Last modified: 2021/02/10 21:16
  • by admin