add secret to wiki js
This commit is contained in:
parent
088e10a73d
commit
ee8e03eede
18
wiki.js/templates/secret.yaml
Normal file
18
wiki.js/templates/secret.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: external-secrets.io/v1alpha1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.wiki.postgresql.existingSecret }}
|
||||||
|
# namespace: external-secrets
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
metadata:
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: vault
|
||||||
|
target:
|
||||||
|
name: {{ .Values.wiki.postgresql.existingSecret }}
|
||||||
|
data:
|
||||||
|
- secretKey: postgresql-password
|
||||||
|
remoteRef:
|
||||||
|
key: secret/infotech
|
||||||
|
property: DB_PASSWORD
|
@ -1,7 +1,7 @@
|
|||||||
# Default values for wiki.
|
# Default values for wiki.
|
||||||
# This is a YAML-formatted file.
|
# This is a YAML-formatted file.
|
||||||
# Declare variables to be passed into your templates.
|
# Declare variables to be passed into your templates.
|
||||||
|
wiki:
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
image:
|
image:
|
||||||
@ -60,7 +60,7 @@ ingress:
|
|||||||
# kubernetes.io/ingress.class: nginx
|
# kubernetes.io/ingress.class: nginx
|
||||||
# kubernetes.io/tls-acme: "true"
|
# kubernetes.io/tls-acme: "true"
|
||||||
hosts:
|
hosts:
|
||||||
- host: infotech.kube.local
|
- host: "infotech.kube.local"
|
||||||
paths:
|
paths:
|
||||||
- path: "/"
|
- path: "/"
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
@ -141,7 +141,7 @@ postgresql:
|
|||||||
## Persistent Volume Storage configuration.
|
## Persistent Volume Storage configuration.
|
||||||
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes
|
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes
|
||||||
##
|
##
|
||||||
|
existingSecret: postgresql-password
|
||||||
replication:
|
replication:
|
||||||
## Enable PostgreSQL replication (primary/secondary)
|
## Enable PostgreSQL replication (primary/secondary)
|
||||||
##
|
##
|
||||||
|
Loading…
Reference in New Issue
Block a user