我正在遵循来自https://argoproj.github.io/argo-cd/getting_started/#3-access-the-argo-cd-api-server的Installation Instructions
,即使服务类型已更改为LoadBalancer
,我也无法登录。
我所掌握的资料是:
$ oc describe svc argocd-server
Name: argocd-server
Namespace: argocd
Labels: app.kubernetes.io/component=server
app.kubernetes.io/name=argocd-server
app.kubernetes.io/part-of=argocd
Annotations: <none>
Selector: app.kubernetes.io/name=argocd-server
Type: LoadBalancer
IP: 172.30.70.178
LoadBalancer Ingress: a553569222264478ab2xx1f60d88848a-642416295.eu-west-1.elb.amazonaws.com
Port: http 80/TCP
TargetPort: 8080/TCP
NodePort: http 30942/TCP
Endpoints: 10.128.3.91:8080
Port: https 443/TCP
TargetPort: 8080/TCP
NodePort: https 30734/TCP
Endpoints: 10.128.3.91:8080
Session Affinity: None
External Traffic Policy: Cluster
Events: <none>
如果我这样做了:
$ oc login https://a553569222264478ab2xx1f60d88848a-642416295.eu-west-1.elb.amazonaws.com
The server is using a certificate that does not match its hostname: x509: certificate is valid for localhost, argocd-server, argocd-server.argocd, argocd-server.argocd.svc, argocd-server.argocd.svc.cluster.local, not a553569222264478ab2xx1f60d88848a-642416295.eu-west-1.elb.amazonaws.com
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y
error: Seems you passed an HTML page (console?) instead of server URL.
Verify provided address and try again.
发布于 2021-04-26 16:21:07
默认情况下,argocd服务器运行时启用了自签名tls。您正在尝试使用启用了tls的不同url访问argocd服务器。API服务器应在禁用TLS的情况下运行。编辑argocd-server部署,将--insecure标记添加到argocd-server命令。
containers:
- command:
- argocd-server
- --staticassets
- /shared/app
- --insecure
发布于 2021-07-01 21:20:04
我通过以下方式成功登录argocd-server
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
argoPass=$(kubectl -n argocd get secret argocd-initial-admin-secret \
-o jsonpath="{.data.password}" | base64 -d)
argocd login --insecure --grpc-web k3s_master:32761 --username admin \
--password $argoPass
发布于 2021-10-18 15:11:55
我可以使用以下命令登录argocd-server
argocd登录--不安全--grpc-web test-server.companydomain.com --grpc-web-root-path /argocd
用户名: admin
密码:
‘'admin:login’已成功登录
我使用traefik作为入口控制器。可以通过浏览器https://test-server.companydomain.com/argocd访问我的服务器
https://stackoverflow.com/questions/67262769
复制相似问题