Browse Source

zookeeper: re-add w/ secrets

main
Victor Roest 1 year ago
parent
commit
f209adfa41
Signed by: 0x76 GPG Key ID: A3923C699D1A3BDA
  1. 1
      cluster/apps/presidential-paradise/kustomization.yaml
  2. 3
      cluster/apps/presidential-paradise/zookeeper/deployment.yaml
  3. 30
      cluster/apps/presidential-paradise/zookeeper/external-secret.yaml
  4. 1
      cluster/apps/presidential-paradise/zookeeper/kustomization.yaml

1
cluster/apps/presidential-paradise/kustomization.yaml

@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- wooloofanclub
- zookeeper

3
cluster/apps/presidential-paradise/zookeeper/deployment.yaml

@ -26,6 +26,9 @@ spec:
image: docker.io/0x76/zookeeper:manual
ports:
- containerPort: 8085
envFrom:
- secretRef:
name: zookeeper
env:
- name: LANG
value: C.UTF-8

30
cluster/apps/presidential-paradise/zookeeper/external-secret.yaml

@ -0,0 +1,30 @@
apiVersion: external-secrets.io/v1alpha1
kind: ExternalSecret
metadata:
name: zookeeper
namespace: presidential-paradise
spec:
refreshInterval: "5m"
secretStoreRef:
name: vault
kind: ClusterSecretStore
target:
name: zookeeper
namespace: presidential-paradise
data:
- secretKey: DISCORD_APP_ID
remoteRef:
key: k8s/presidential-paradise/zookeeper
property: discord_app_id
- secretKey: DISCORD_PUBLIC_KEY
remoteRef:
key: k8s/presidential-paradise/zookeeper
property: discord_public_key
- secretKey: DISCORD_TOKEN
remoteRef:
key: k8s/presidential-paradise/zookeeper
property: discord_token
- secretKey: TWITTER_TOKEN
remoteRef:
key: k8s/presidential-paradise/zookeeper
property: twitter_token

1
cluster/apps/presidential-paradise/zookeeper/kustomization.yaml

@ -1,6 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- external-secret.yaml
- deployment.yaml
- svc.yaml
- ingress.yaml