我正在尝试配置大三角帆以在kubernetes环境中部署应用程序。
我跟着documentation,
在step-3,screenshot所示的容器未显示。然后我转到下一个step(管道创建),当我在WSRequest request = ws.url("http://example.com").setQueryParameter("paramKey", "paramValue");
CompletionStage<Document> documentPromise = request.get()
.thenApply(WSResponse::asXml);
中选择type: Docker
时,再次Automated Trigger
未显示,如screenshot所示。
所以,我怀疑大三角帆和泊坞窗集线器仓库存在问题(身份验证/配置错误?)
我已将Kubernetes身份验证配置文件复制到Repo name
。我认为大三角帆和kubernetes没有问题。当我在大三角帆中创建~/.kube/config
时,我可以看到Load Balancer
正在创建(test-dev&amp; test-prod)
Kube Services
我的root@veeru:~# kubectl get services
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes 192.168.3.1 <none> 443/TCP 91d
test-dev 192.168.3.113 <none> 80/TCP 6h
test-prod 192.168.3.185 80/TCP 6h
spinnaker-local.yml
我的<Content removed for brevity>
kubernetes:
# For more information on configuring Kubernetes clusters (kubernetes), see
# http://www.spinnaker.io/v1.0/docs/target-deployment-setup#section-kubernetes-cluster-setup
# NOTE: enabling kubernetes also requires enabling dockerRegistry.
enabled: true
primaryCredentials:
# These credentials use authentication information at ~/.kube/config
# by default.
name: veerendrav2
namespace: default
dockerRegistryAccount: veerendrav2
dockerRegistry:
# If you want to deploy containers to a container management solution,
# you must specifiy where these container images exist first.
# NOTE: Enabling dockerRegistry is independent of other providers.
# However, for convienience, we tie docker and kubernetes together
# since kubernetes (and only kubernetes) depends on this docker provider
# configuration.
enabled: true
primaryCredentials:
name: veerendrav2
address: https://hub.docker.com
repository: veerendrav2/spin-kub-demo
<Content removed for brevity>
/opt/spinnaker/config/clouddriver-local.yml
我的示例应用github repo和docker hub repo
由于
答案 0 :(得分:1)
在/opt/spinnaker/config/clouddriver-local.yml
中,您可能需要将dockerRegistry.accounts[0].address
字段更改为https://index.docker.io
,因为DockerHub的注册表未在hub.docker.com
上托管,但是index.docker.io
。
答案 1 :(得分:0)
配置docker注册表地址或任何其他配置的推荐方法是使用Halyard。直接修改配置文件可能会导致它们被覆盖。
您可以添加帐户,也可以通过这种方式修改现有帐户。
# Split commands
sqlCommands = MySQLScript.splitlines()