This commit is contained in:
2023-07-16 13:47:20 -05:00
parent e0772a65d3
commit ce21625671
4 changed files with 11 additions and 455 deletions

View File

@@ -29,40 +29,6 @@ spec:
key: secrets/kong/tls
property: key
#---
#
#apiVersion: external-secrets.io/v1beta1
#kind: ExternalSecret
#metadata:
# name: kong-config-secret
#spec:
# secretStoreRef:
# name: vault-kong
# kind: SecretStore
# target:
# name: kong-config-secret
# data:
# - secretKey: admin_gui_session_conf
# remoteRef:
# key: secrets/kong/config
# property: admin_gui_session_conf
# - secretKey: kong_admin_password
# remoteRef:
# key: secrets/kong/config
# property: kong_admin_password
# - secretKey: password
# remoteRef:
# key: secrets/kong/postgres
# property: password
# - secretKey: pg_host
# remoteRef:
# key: secrets/kong/config
# property: pg_host
# - secretKey: portal_session_conf
# remoteRef:
# key: secrets/kong/config
# property: portal_session_conf
#
---
apiVersion: external-secrets.io/v1beta1
@@ -79,33 +45,3 @@ spec:
kubernetes:
mountPath: "kubernetes"
role: "external-secrets"
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: kong-postgresql
spec:
secretStoreRef:
name: vault-kong
kind: SecretStore
target:
name: kong-postgresql
data:
- secretKey: postgres-username
remoteRef:
key: secrets/kong/postgres
property: username
- secretKey: postgres-password
remoteRef:
key: secrets/kong/postgres
property: password
- secretKey: postgres-database
remoteRef:
key: secrets/kong/postgres
property: database
- secretKey: password
remoteRef:
key: secrets/kong/postgres
property: password