Firebird/Developer Guidelines
From stonehomewiki
Jump to navigationJump to search
Kubernete Dashboard
You can create a SSH tunnel and use port forward
ssh -L 8443:localhost:8443 beta-k8s-admin k port-forward service/kubernetes-dashboard -n kube-system 8443:443
Test Environment
During development, it is very time consuming to rebuild docker image for streaming application and firebird web console. Here is what I did
Here is what you can do (1) Update firebird console code (2) run bin/dev-upload.sh (3) On firebird console, run ./dev_install.sh to pick up the change
To reload firebird web console
k rollout restart deployment/firebird-console-deployment
ZooKeeper
There might be time data in zookeeper might be corrupted, and sometimes it need manual recover.
Find ZooKeeper pod
k get pods NAME READY STATUS RESTARTS AGE demo-pod 1/1 Running 0 10h firebird-console-deployment-54476fb5dc-k4l4t 1/1 Running 0 5h26m rabbitmq-7675755457-c6fpc 1/1 Running 0 10h zookeeper-7967d6f86-gjsrc 1/1 Running 0 6h16m k exec -it zookeeper-7967d6f86-gjsrc -- bash bin/zkCli.sh # list everything under root ls -R / # delete everything under pipeline deleteall /pipelines delete /firebird-global-lock
Scale
kubectl scale --replicas=2 deployment/firebird-pipeline--test