-
Notifications
You must be signed in to change notification settings - Fork 1
/
commands
43 lines (28 loc) · 1.38 KB
/
commands
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/home/vagrant/go/bin/kind create cluster
kubectl apply -f k8_config.yaml
kubectl exec worker-service -- printenv | grep SERVICE
kubectl delete pods,services,deployments --all
helm install default bitnami/zookeeper
docker run -d --privileged --name=master --net=none master_image tail -f /dev/null
kubectl scale deployment master-deployment --replicas=0
kubectl scale deployment master-deployment --replicas=1
kubectl port-forward --namespace default svc/default-zookeeper 2181: & zkCli.sh 127.0.0.1:2181
NAME: default
LAST DEPLOYED: Wed Apr 6 19:02:09 2022
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: zookeeper
CHART VERSION: 8.1.2
APP VERSION: 3.7.0
** Please be patient while the chart is being deployed **
ZooKeeper can be accessed via port 2181 on the following DNS name from within your cluster:
default-zookeeper.default.svc.cluster.local
To connect to your ZooKeeper server run the following commands:
export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=zookeeper,app.kubernetes.io/instance=default,app.kubernetes.io/component=zookeeper" -o jsonpath="{.items[0].metadata.name}")
kubectl exec -it $POD_NAME -- zkCli.sh
To connect to your ZooKeeper server from outside the cluster execute the following commands:
kubectl port-forward --namespace default svc/default-zookeeper 2181: &
zkCli.sh 127.0.0.1:2181