kubectl get secret postgresql-secrets -o go-template='{{ range $key, $value := .data }}{{ $key }}{{ ": " }}{{ $value | base64decode }}{{ "\n" }}{{ end }}'
POSGRESQL_PASSWORD: password
POSTGRESQL_DATABASE: db

см. также: