nanit / kubernetes-rabbitmq-cluster

Deploy-ready rabbitmq cluster for kubernetes
MIT License
197 stars 84 forks source link

deploy-rabbitmq error 1 #8

Closed dimthe closed 7 years ago

dimthe commented 7 years ago

hello so following this per the instructions , after i run make deploy it craps out with the error logs listed below. i think it does not detect all the exports Some hints.. ? thanks

make deploy docker pull nanit/rabbitmq:133aedd || ( docker build -t nanit/rabbitmq:133aedd docker && docker push nanit/rabbitmq:133aedd) Trying to pull repository docker.io/nanit/rabbitmq ... 133aedd: Pulling from docker.io/nanit/rabbitmq Digest: sha256:392c129dee79739488e15cdfc195d9c2d0babb8aabcab186433f6b546428b5e8 kubectl get ns default || kubectl create ns default NAME STATUS AGE default Active 11d kubectl get svc -n default rabbitmq || sed -e 's/{{APP_NAME}}/rabbitmq/g;s/{{SVC_NAME}}/rabbitmq/g' kube/svc.yml | kubectl create -n default -f - Error from server (NotFound): services "rabbitmq" not found service "rabbitmq" created kubectl get svc -n default rmq-cluster || sed -e 's/{{APP_NAME}}/rabbitmq/g;s/{{SVC_NAME}}/rmq-cluster/g' kube/svc.headless.yml | kubectl create -n default -f - Error from server (NotFound): services "rmq-cluster" not found service "rmq-cluster" created if [ "TRUE" = "TRUE" ]; then kubectl get svc -n default rabbitmq-management || sed -e 's/{{APP_NAME}}/rabbitmq/g;s/{{SVC_NAME}}/rabbitmq-management/g' kube/svc.management.yml | kubectl create -n default -f - ; fi Error from server (NotFound): services "rabbitmq-management" not found service "rabbitmq-management" created if [ -z "5" ]; then echo "ERROR: RABBITMQ_REPLICAS is empty!"; exit 1; fi if [ -z "dimtheo" ]; then echo "ERROR: RABBITMQ_DEFAULT_USER is empty!"; exit 1; fi if [ -z "123456" ]; then echo "ERROR: RABBITMQ_DEFAULT_PASS is empty!"; exit 1; fi if [ -z "secret" ]; then echo "ERROR: RABBITMQ_ERLANG_COOKIE is empty!"; exit 1; fi sed -e 's/{{SVC_NAME}}/rmq-cluster/g;s/{{APP_NAME}}/rabbitmq/g;s,{{IMAGE_NAME}},nanit/rabbitmq:133aedd,g;s/{{REPLICAS}}/5/g;s/{{RABBITMQ_DEFAULT_USER}}/dimtheo/g;s/{{RABBITMQ_DEFAULT_PASS}}/123456/g;s/{{RABBITMQ_ERLANG_COOKIE}}/secret/g' kube/stateful.set.yml | kubectl apply -n default -f - error: unable to decode "STDIN": [pos 305]: json: expect char '"' but got char '1' make: *** [deploy-rabbitmq] Error 1

erez-rabih commented 7 years ago

Your issue should be solved by https://github.com/nanit/kubernetes-rabbitmq-cluster/pull/9 Please re-open if it still occurs

erez-rabih commented 7 years ago

Hey thanks for reporting this This is because your password starts with a digit, which makes the Kubernetes YAML file invalid.