diff --git a/Bootstrap.md b/Bootstrap.md index 37ab033..47bb893 100644 --- a/Bootstrap.md +++ b/Bootstrap.md @@ -1,15 +1,37 @@ +install nginx-ingress + $ helm dep update apps/system/nginx-ingress $ helm template --name nginx-ingress --namespace nginx-ingress apps/system/nginx-ingress | kubectl --context=gullfaxi --namespace nginx-ingress apply -f - +install cert-manager with cluster issuer + $ helm repoadd jetstack https://charts.jetstack.io $ helm dep update apps/system/cert-manager $ helm template --name cert-manager --namespace cert-manager apps/system/cert-manager | kubectl --context=gullfaxi --namespace cert-manager apply -f - +install argocd + $ kubectl --context=gullfaxi apply -k apps/argocd -# add dex.github.clientId and dex.github.clientSecret into argo-secret + +add dex.github.clientId and dex.github.clientSecret into argo-secret +add gitPrivateKey + $ kubectl --context=gullfaxi -n argocd edit secret argocd-secret -(optional) -$ kubectl --context=gullfaxi apply -k apps/system/sealed-secrets +add argocd public key as deploy key to gf-k8s repo + +log into argocd + +$ argocd login argocd-grpc.gorilych.ru + +create main app + +$ argocd app create main \ + --dest-namespace argocd \ + --dest-server https://kubernetes.default.svc \ + --repo git@github.com:gorilych/gf-k8s.git \ + --path main \ + --sync-policy automated \ + --self-heal --auto-prune