Skip to content

Instantly share code, notes, and snippets.

@ozooxo
Created April 21, 2020 16:43
Show Gist options
  • Save ozooxo/5269190fd3dc7be0024dfc99350c67a2 to your computer and use it in GitHub Desktop.
Save ozooxo/5269190fd3dc7be0024dfc99350c67a2 to your computer and use it in GitHub Desktop.
Install ArgoCD in GKE
$ kubectl create clusterrolebinding MYNAME-cluster-admin-binding --clusterrole=cluster-admin --user=MYNAME@gmail.com
$ kubectl create namespace argocd
$ kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
$ kubectl -n argocd get pods
NAME READY STATUS RESTARTS AGE
argocd-application-controller-5bc5cf665f-8hgl2 1/1 Running 0 70s
argocd-dex-server-b59646b69-7mktd 1/1 Running 0 70s
argocd-redis-868b8cb57f-lz7qj 1/1 Running 0 70s
argocd-repo-server-c4d76fdf5-rj6f9 1/1 Running 0 70s
argocd-server-55594fbdb9-zjm5s 1/1 Running 0 70s
$ kubectl -n argocd get service argocd-server
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
argocd-server ClusterIP 10.3.241.126 <none> 80/TCP,443/TCP 3m4s
$ kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
service/argocd-server patched
$ kubectl -n argocd get service argocd-server
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
argocd-server LoadBalancer 10.3.241.126 34.73.240.246 80:31751/TCP,443:32062/TCP 15m
# Then we can access http://34.73.240.246 but need to tell browser to "process unsafe site".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment