Инсталляция ArgoCD на Minikube


Делаю:
2024.04.07


https://argo-cd.readthedocs.io/en/stable/getting_started/


$ 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-0                     1/1     Running   0          74s
argocd-applicationset-controller-5478c64d7c-2pbqd   1/1     Running   0          74s
argocd-dex-server-6b576d67c9-z5qqh                  1/1     Running   0          74s
argocd-notifications-controller-5f6c747849-9l5sw    1/1     Running   0          74s
argocd-redis-76748db5f4-w4rjg                       1/1     Running   0          74s
argocd-repo-server-58c78bd74f-228dm                 1/1     Running   0          74s
argocd-server-5fd847d6bc-28frv                      1/1     Running   0          74s


Подключиться в консоли


Install Argo CD CLI


$ kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "NodePort"}}'


$ kubectl get svc -n argocd
NAME                                      TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                      AGE
argocd-applicationset-controller          ClusterIP   10.97.206.224    <none>        7000/TCP,8080/TCP            26m
argocd-dex-server                         ClusterIP   10.104.246.7     <none>        5556/TCP,5557/TCP,5558/TCP   26m
argocd-metrics                            ClusterIP   10.97.72.90      <none>        8082/TCP                     26m
argocd-notifications-controller-metrics   ClusterIP   10.105.22.117    <none>        9001/TCP                     26m
argocd-redis                              ClusterIP   10.104.174.108   <none>        6379/TCP                     26m
argocd-repo-server                        ClusterIP   10.98.29.178     <none>        8081/TCP,8084/TCP            26m
argocd-server                             NodePort    10.109.5.199     <none>        80:32763/TCP,443:31778/TCP   26m
argocd-server-metrics                     ClusterIP   10.110.183.112   <none>        8083/TCP                     26m


$ export ARGOCD_PASSWORD=$(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d)
$ echo ${ARGOCD_PASSWORD}


$ minikube --profile ${PROFILE} ip
192.168.49.2


$ argocd login --insecure --grpc-web 192.168.49.2:32763 --username admin \
    --password ${ARGOCD_PASSWORD}

***
'admin:login' logged in successfully
Context '192.168.49.2:32763' updated


$ argocd version
argocd: v2.10.2+fcf5d8c
  BuildDate: 2024-03-01T21:47:51Z
  GitCommit: fcf5d8c2381b68ab1621b90be63913b12cca2eb7
  GitTreeState: clean
  GoVersion: go1.21.7
  Compiler: gc
  Platform: linux/amd64
argocd-server: v2.10.6+d504d2b
  BuildDate: 2024-04-05T00:27:47Z
  GitCommit: d504d2b1d92f0cf831a124a5fd1a96ee29fa7679
  GitTreeState: clean
  GoVersion: go1.21.3
  Compiler: gc
  Platform: linux/amd64
  Kustomize Version: v5.2.1 2023-10-19T20:13:51Z
  Helm Version: v3.14.3+gf03cc04
  Kubectl Version: v0.26.11
  Jsonnet Version: v0.20.0


Подключиться к UI


// Получаем пароль для подключения к UI
$ kubectl -n argocd get secret argocd-initial-admin-secret \
          -o jsonpath="{.data.password}" | base64 -d; echo


$ kubectl port-forward svc/argocd-server -n argocd 8080:443


// admin / результат выполнения команды выше.
localhost:8080