Skip to content

Commit

Permalink
we need to install argocd
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinlercher authored May 5, 2024
1 parent 9ba231e commit 5189e06
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install-k3d-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,16 @@ done
# apply argocd-secret to set admin user and password
kubectl apply -f https://raw.githubusercontent.com/suxess-it/sx-cnp-oss/main/platform-apps/charts/argocd/manual-secret/argocd-secret.yaml

argocd login argocd-127-0-0-1.nip.io --grpc-web --insecure --username admin --password admin
# download argocd
curl -kL -o argocd https://argocd-127-0-0-1.nip.io/download/argocd-linux-amd64
chmod u+x argocd

./argocd login argocd-127-0-0-1.nip.io --grpc-web --insecure --username admin --password admin
export ARGOCD_AUTH_TOKEN="argocd.token=$( argocd account generate-token --account backstage --grpc-web )"

ID=$( curl -k -X POST https://grafana-127-0-0-1.nip.io/api/serviceaccounts --user 'admin:prom-operator' -H "Content-Type: application/json" -d '{"name": "backstage","role": "Viewer","isDisabled": false}' | jq -r .id )
export GRAFANA_TOKEN=$(curl -k -X POST https://grafana-127-0-0-1.nip.io/api/serviceaccounts/${ID}/tokens --user 'admin:prom-operator' -H "Content-Type: application/json" -d '{"name": "backstage"}' | jq -r .key)


# max wait for 3 minutes
end=$((SECONDS+180))
argocd_apps="sx-backstage"
Expand Down

0 comments on commit 5189e06

Please sign in to comment.