This commit is contained in:
2024-08-02 17:24:31 +07:00
parent 23fa8b4ff5
commit 89eec9691a
9 changed files with 146 additions and 64 deletions

View File

@@ -42,13 +42,16 @@ envs:
# IMPORTANT: While operator chart and UI chart are independent, this is the interface between
# UI and operator API. Insert the service name of the operator API here!
appUrl: "http://localhost:8081"
operatorApiUrl: "http://postgres-operator:8080"
operatorApiUrl: "http://zalando-operator-postgres-operator:8080" #TODO
operatorClusterNameLabel: "cluster-name"
resourcesVisible: "False"
# Set to "*" to allow viewing/creation of clusters in all namespaces
targetNamespace: "default"
teams:
targetNamespace: "*" #TODO default: default NS
teams: #TODO
- "acid"
- "zalando"
- "rm"
- "realmanual"
# Extra pod annotations
podAnnotations:
@@ -59,32 +62,41 @@ podAnnotations:
# https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#environment-variables
# UI specific env variables can be found here: https://github.com/zalando/postgres-operator/blob/master/ui/operator_ui/main.py
extraEnvs:
[]
extraEnvs: #TODO
# Exemple of settings to make snapshot view working in the ui when using AWS
# - name: WALE_S3_ENDPOINT
# value: https+path://s3.us-east-1.amazonaws.com:443
# - name: SPILO_S3_BACKUP_PREFIX
# value: spilo/
# - name: AWS_ACCESS_KEY_ID
# valueFrom:
# secretKeyRef:
# name: <postgres operator secret with AWS token>
# key: AWS_ACCESS_KEY_ID
# - name: AWS_SECRET_ACCESS_KEY
# valueFrom:
# secretKeyRef:
# name: <postgres operator secret with AWS token>
# key: AWS_SECRET_ACCESS_KEY
# - name: AWS_DEFAULT_REGION
# valueFrom:
# secretKeyRef:
# name: <postgres operator secret with AWS token>
# key: AWS_DEFAULT_REGION
# - name: SPILO_S3_BACKUP_BUCKET
# value: <s3 bucket used by the operator>
# - name: "USE_AWS_INSTANCE_PROFILE"
# value: "true"
- name: AWS_ENDPOINT
# value: https+path://s3.us-east-1.amazonaws.com:443
valueFrom:
secretKeyRef:
name: logical-backup-secrets
key: LOGICAL_BACKUP_S3_ENDPOINT
- name: SPILO_S3_BACKUP_PREFIX
valueFrom:
secretKeyRef:
name: logical-backup-secrets
key: LOGICAL_BACKUP_S3_BUCKET_PREFIX
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: logical-backup-secrets
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: logical-backup-secrets
key: AWS_SECRET_ACCESS_KEY
- name: AWS_DEFAULT_REGION
valueFrom:
secretKeyRef:
name: logical-backup-secrets
key: LOGICAL_BACKUP_S3_REGION
- name: SPILO_S3_BACKUP_BUCKET
valueFrom:
secretKeyRef:
name: logical-backup-secrets
key: LOGICAL_BACKUP_S3_BUCKET
- name: "USE_AWS_INSTANCE_PROFILE"
value: "true"
# configure UI service
service: