For argocd with https authentication enabled, it is useless when adding a cluster. You need to log in to the server-side POD for configuration, as follows:
# cat ~/.argocd/configcontexts:
- name: argocd-server.argocd
server: qacd.test.cn
user: argocd-server.argocd
current-context: argocd-server.argocd
servers:
- grpc-web-root-path: ""insecure: trueserver: qacd.test.cn
users:
- auth-token: xxxxxx #Here is the first step to generate token informationname: argocd-server.argocd
Configure kubeconfig
The specific configuration is omitted here. Please refer to previous documents. The premise is that you can access the cluster and are a cluster administrator. Here, CONTEXT is configured as idc-bj-k8s
# argocd --grpc-web cluster rm https://172.16.16.250:8443
# argocd --grpc-web cluster list
SERVER NAME VERSION STATUS MESSAGE
https://kubernetes.default.svc 1.14 Successful