Created
August 12, 2022 14:05
-
-
Save RafaelFigueiredo/e77e3e4e461d5de0592099a417d8c4da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install linkerd cli | |
curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/install | sh | |
export PATH=$PATH:~/.linkerd2/bin | |
# install linkerd | |
linkerd install --set proxyInit.runAsRoot=true | kubectl apply -f - | |
# enable dashboard | |
linkerd viz install | kubectl apply -f - | |
# enable jaeger for tracing | |
linkerd jaeger install | kubectl apply -f - | |
# enable jaeger for dashboard tracing | |
linkerd viz install --set jaegerUrl=jaeger.linkerd-jaeger:16686 | kubectl apply -f - | |
kubectl create ns infra | |
kubectl config set-context --current --namespace=infra | |
helm repo add couchdb https://apache.github.io/couchdb-helm | |
helm repo update | |
helm install couchdb couchdb/couchdb \ | |
--set couchdbConfig.couchdb.uuid=$(curl https://www.uuidgenerator.net/api/version4 2>/dev/null | tr -d -) | |
echo "! Admin password: " | |
kubectl get secret couchdb-couchdb -o go-template='{{ .data.adminPassword }}' | base64 --decode | |
kubectl exec --namespace infra -it couchdb-couchdb-0 -c couchdb -- \ | |
curl -s \ | |
http://127.0.0.1:5984/_cluster_setup \ | |
-X POST \ | |
-H "Content-Type: application/json" \ | |
-d '{"action": "finish_cluster"}' \ | |
-u admin | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment