zookeeper: stuff

This commit is contained in:
Vivian 2021-10-29 23:39:12 +02:00
parent 2740f2cbfb
commit 87e842a757
No known key found for this signature in database
GPG key ID: A3923C699D1A3BDA
4 changed files with 13 additions and 3 deletions

View file

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

View file

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

View file

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

View file

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