Skip to content

Instantly share code, notes, and snippets.

@RafaelFigueiredo
Created August 12, 2022 14:05
Show Gist options
  • Save RafaelFigueiredo/e77e3e4e461d5de0592099a417d8c4da to your computer and use it in GitHub Desktop.
Save RafaelFigueiredo/e77e3e4e461d5de0592099a417d8c4da to your computer and use it in GitHub Desktop.
# 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