我终于能把spinnaker造出来了。但我无法访问项目和应用程序。获取以下错误。我还想知道如何在哪个文件中将配置从本地主机更改为ip地址。这样我就可以让用户使用它了。完成此操作后,我可以计划启用身份验证机制。


发布于 2020-04-25 03:58:15
请根据服务类型使用下面提到的方法之一
如果将LoadBalancer服务类型用于门/甲板,则为
hal config security ui edit --override-base-url "http://$Deck_LoadBalancer_IP:9000"
hal config security api edit --override-base-url "http://$Gate_LoadBalancer_IP:8084"请尝试在浏览器中使用"http://$Deck_LoadBalancer_IP:9000"(访问时请使用端口号“进行访问。)
如果将NodePort服务类型用于门/甲板,则为
hal config security ui edit --override-base-url "http://$SPIN_HOST:DeckNodePortIP"
hal config security api edit --override-base-url "http://$SPIN_HOST:GateNodePortIP"更新后容器部署和验证(确保所有pods都已启动并运行)
hal deploy apply发布于 2020-04-17 04:22:52
我也有同样的问题,我在Kubernetes集群(Kubeadm集群安装在EC2实例上)上设置了Spinnaker,在debian上设置了用于存储的s3 (需要授予IAM的权限)和halyard。当我检查浏览器日志时,我能够看到GET http://localhost:8084,尽管我使用了下面的命令;
hal配置安全ui编辑--override-base-url "http://:32323“
hal配置安全api edit --override-base-url "http://:32324“
发布于 2020-04-17 21:57:34
这可能是因为无法从您的浏览器访问Spin-gate服务。为了从浏览器访问Spinnaker UI,您应该确保spin-gate (API)和spin-deck (UI)服务都可以访问。默认情况下,spin-gate (API)设置为http://localhost:8084,而spin-deck设置为http://localhost:9000。因此,当您尝试使用IP地址访问Spinnaker UI时,Spinnaker UI会尝试连接到URL上的自旋门( http://localhost:8084 ),这可能会导致此问题。
因此,您应该在halyard配置中更新Spinnaker gate和Spinnaker甲板URL。您可以通过CLI或通过编辑~/.hal/config文件来执行此操作。
从命令行执行以下操作:
hal config security ui edit --override-base-url "http://spin-ui-ip"hal config security api edit --override-base-url "http://spin-api-ip"或者编辑~/.hal/config文件中的以下值:
currentDeployment: default
deploymentConfigurations:
- name: default
...
...
...
security:
apiSecurity:
ssl:
enabled: false
overrideBaseUrl: http://spin-api-ip
uiSecurity:
ssl:
enabled: false
overrideBaseUrl: http://spin-ui-iphttps://stackoverflow.com/questions/61246072
复制相似问题