mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
argocd: update bootstrap instructions
This commit is contained in:
parent
6a3adf7aca
commit
b257c8f893
1 changed files with 25 additions and 3 deletions
28
Bootstrap.md
28
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue