登录 argocd login 192.168.10.200:30779 WARNING: server certificate had error: tls: failed to verify certificate: x509: cannot validate certificate for 192.168.10.200 because it doesn't contain any IP SANs. Proceed insecurely (y/n)? y Username: admin Password: 'admin:login' logged in successfully Context '192.168.10.200:30779' updated 更改密码 argocd account update-password *** Enter password of currently logged in user (admin): *** Enter new password for user admin: *** Confirm new password for user admin: Password updated Context '192.168.10.200:30779' updated
#先对argoCLI进行配置——登录 sudo argocd login 127.0.0.1:32198 WARNING: server certificate had error: tls: failed to verify certificate: x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs. Proceed insecurely (y/n)? y Username: admin Password: 'admin:login' logged in successfully Context '127.0.0.1:32198' updated #设置外部k8s 如果没有默认kubeconfig可以使用--kubeconfig参数进行指定 sudo argocd cluster add --kubeconfig config_compute local 'WARNING: This will create a service account `argocd-manager` on the cluster referenced by context `local` with full cluster level privileges. Do you want to continue [y/N]? y INFO[0001] ServiceAccount "argocd-manager" already exists in namespace "kube-system" INFO[0001] ClusterRole "argocd-manager-role" updated INFO[0001] ClusterRoleBinding "argocd-manager-role-binding" updated Cluster 'https://10.175.208.16:6443' added