Browse Source

zookeeper: stuff

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

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

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

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

@ -25,14 +25,17 @@ spec:
- name: zookeeper
image: docker.io/0x76/zookeeper:latest
ports:
- containerPort: 8085
- name: web
containerPort: 8085
- name: epmd
containerPort: 4369
envFrom:
- secretRef:
name: zookeeper
env:
- name: LANG
value: C.UTF-8
- name: HOSTNAME
- name: RELEASE_NODE_IP
valueFrom:
fieldRef:
fieldPath: status.podIP

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

@ -27,3 +27,7 @@ spec:
remoteRef:
key: presidential-paradise/zookeeper
property: twitter_token
- secretKey: ERLANG_COOKIE
remoteRef:
key: presidential-paradise/zookeeper
property: erlang_cookie

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

@ -8,6 +8,8 @@ spec:
ports:
- name: epmd
port: 4369
targetPort: epmd
protocol: TCP
selector:
app: zookeeper
---
@ -19,6 +21,7 @@ metadata:
spec:
ports:
- name: http
targetPort: web
port: 8085
selector:
app: zookeeper