在kubernetes上安装大三角帆时出错

时间:2017-09-12 20:02:29

标签: kubernetes spinnaker

我按照实验性的k8s安装,它似乎工作,直到我打开门户网站。然后应用程序和项目有标题栏,但主页面主体只是一个旋转的齿轮。我该怎么调试呢?

安装说明: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

2 个答案:

答案 0 :(得分:4)

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

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

可以找到安装说明here

答案 1 :(得分:0)

我跟着this link在k8s上安装Spinnaker。它工作得很好。我猜您可以按照此说明在k8s上安装Spinnaker。