diff --git a/cluster/apps/presidential-paradise/kustomization.yaml b/cluster/apps/presidential-paradise/kustomization.yaml index d5ef44b..cd9cd51 100644 --- a/cluster/apps/presidential-paradise/kustomization.yaml +++ b/cluster/apps/presidential-paradise/kustomization.yaml @@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - wooloofanclub + - zookeeper diff --git a/cluster/apps/presidential-paradise/zookeeper/deployment.yaml b/cluster/apps/presidential-paradise/zookeeper/deployment.yaml index c464580..8eb34af 100644 --- a/cluster/apps/presidential-paradise/zookeeper/deployment.yaml +++ b/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 diff --git a/cluster/apps/presidential-paradise/zookeeper/external-secret.yaml b/cluster/apps/presidential-paradise/zookeeper/external-secret.yaml new file mode 100644 index 0000000..744b516 --- /dev/null +++ b/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 diff --git a/cluster/apps/presidential-paradise/zookeeper/kustomization.yaml b/cluster/apps/presidential-paradise/zookeeper/kustomization.yaml index 5b33a50..3716bd7 100644 --- a/cluster/apps/presidential-paradise/zookeeper/kustomization.yaml +++ b/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