在 kubernetes 上安装 spinnaker 时出错

Error installing spinnaker on kubernetes

我按照实验性的 k8s 安装进行了操作,在我打开门户之前它似乎一直有效。然后应用程序和项目有标题栏,但主页 body 只是一个旋转的齿轮。我该如何调试?

安装说明:https://github.com/spinnaker/spinnaker/tree/master/experimental/kubernetes/simple

这是我在日志中发现的唯一错误:

2017-09-12 19:29:35.764  INFO 1 --- [x-credentials-1] c.n.s.g.s.internal.ClouddriverService    : ---- ERROR http://spin-clouddriver.spinnaker:7002/credentials
2017-09-12 19:29:35.765  INFO 1 --- [x-credentials-1] c.n.s.g.s.internal.ClouddriverService    : java.net.SocketTimeoutException: connect timed out 

其他信息:

kubectl describe svc --namespace spinnaker spin-clouddriver
Name:           spin-clouddriver
Namespace:      spinnaker
Labels:         app=spin
            stack=clouddriver
Annotations:        <none>
Selector:       load-balancer-spin-clouddriver=true
Type:           ClusterIP
IP:         100.70.137.138
Port:           <unset> 7002/TCP
Endpoints:      100.96.2.4:7002
Session Affinity:   None
Events:         <none>

kubectl describe pod --namespace spinnaker spin-clouddriver-v000-fmwhr
Name:       spin-clouddriver-v000-fmwhr
Namespace:  spinnaker
Node:       ip-172-20-61-85.ca-central-1.compute.internal/172.20.61.85
Start Time: Wed, 13 Sep 2017 08:11:05 -0400
Labels:     load-balancer-spin-clouddriver=true
        replication-controller=spin-clouddriver-v000
Annotations:    kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"spinnaker","name":"spin-clouddriver-v000","uid":"9df7c363-987c-11e7-90ae-02f58db8...
Status:     Running
IP:     100.96.2.4
Created By: ReplicaSet/spin-clouddriver-v000
Controlled By:  ReplicaSet/spin-clouddriver-v000
Containers:
  clouddriver:
    Container ID:   docker://d7c7ba2611186a248f6910c605c71045e0f7300f3ab4857df30ef28b9f9c7f54
    Image:      quay.io/spinnaker/clouddriver:master
    Image ID:       docker-pullable://quay.io/spinnaker/clouddriver@sha256:98be0ee63e040a2bcd8ba6ca6a67d23bb8aab457f4a86882b3da65f043dc895f
    Port:       7002/TCP
    State:      Running
      Started:      Wed, 13 Sep 2017 08:12:03 -0400
    Ready:      True
    Restart Count:  0
    Readiness:      http-get http://:7002/credentials delay=20s timeout=1s period=10s #success=1 #failure=3
    Environment:    <none>
    Mounts:
      /opt/spinnaker/config from spinnaker-config (rw)
      /root/.kube from creds-config (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-hpql5 (ro)
Conditions:
  Type      Status
  Initialized   True 
  Ready     True 
  PodScheduled  True 
Volumes:
  spinnaker-config:
    Type:   Secret (a volume populated by a Secret)
    SecretName: spinnaker-config
    Optional:   false
  creds-config:
    Type:   Secret (a volume populated by a Secret)
    SecretName: creds-config
    Optional:   false
  default-token-hpql5:
    Type:   Secret (a volume populated by a Secret)
    SecretName: default-token-hpql5
    Optional:   false
QoS Class:  BestEffort
Node-Selectors: <none>
Tolerations:    node.alpha.kubernetes.io/notReady:NoExecute for 300s
        node.alpha.kubernetes.io/unreachable:NoExecute for 300s
Events:
  FirstSeen LastSeen    Count   From                            SubObjectPath       Type        Reason          Message
  --------- --------    -----   ----                            -------------       --------    ------          -------
  19m       19m     1   default-scheduler                               Normal      Scheduled       Successfully assigned spin-clouddriver-v000-fmwhr to ip-172-20-61-85.ca-central-1.compute.internal
  19m       19m     1   kubelet, ip-172-20-61-85.ca-central-1.compute.internal              Normal      SuccessfulMountVolume   MountVolume.SetUp succeeded for volume "creds-config" 
  19m       19m     1   kubelet, ip-172-20-61-85.ca-central-1.compute.internal              Normal      SuccessfulMountVolume   MountVolume.SetUp succeeded for volume "default-token-hpql5" 
  19m       19m     1   kubelet, ip-172-20-61-85.ca-central-1.compute.internal              Normal      SuccessfulMountVolume   MountVolume.SetUp succeeded for volume "spinnaker-config" 
  19m       19m     1   kubelet, ip-172-20-61-85.ca-central-1.compute.internal  spec.containers{clouddriver}    Normal      Pulling         pulling image "quay.io/spinnaker/clouddriver:master"
  18m       18m     1   kubelet, ip-172-20-61-85.ca-central-1.compute.internal  spec.containers{clouddriver}    Normal      Pulled          Successfully pulled image "quay.io/spinnaker/clouddriver:master"
  18m       18m     1   kubelet, ip-172-20-61-85.ca-central-1.compute.internal  spec.containers{clouddriver}    Normal      Created         Created container
  18m       18m     1   kubelet, ip-172-20-61-85.ca-central-1.compute.internal  spec.containers{clouddriver}    Normal      Started         Started container
  18m       18m     2   kubelet, ip-172-20-61-85.ca-central-1.compute.internal  spec.containers{clouddriver}    Warning     Unhealthy       Readiness probe failed: Get http://100.96.2.4:7002/credentials: dial tcp 100.96.2.4:7002: getsockopt: connection refused

Spinnaker 的安装在过去一年中有了显着改进。他们现在有一个名为 Halyard 的工具,旨在配置和部署 Spinnaker。

它可以直接部署到 Kubernetes 集群中。

可以找到安装说明here

我按照this link在k8s上安装了Spinnaker。而且效果很好。我想您可以按照此说明在 k8s 上安装 Spinnaker。