Kinnnetes上的Spinnaker,如何配置redis和cassandra连接?

时间:2016-06-02 17:18:03

标签: kubernetes spinnaker

我正在尝试在我们的内部kubernetes集群上启动大三角帆。目前的状态是:

$ kubectl get pods
NAME                           READY     STATUS             RESTARTS   AGE
data-cassandra-v000-1azd8      1/1       Running            0          3h
data-redis-master-v000-68jzu   1/1       Running            0          4h
spkr-clouddriver-v000-0xpdl    1/1       Running            0          3h
spkr-deck-v000-xsl4o           1/1       Running            0          3h
spkr-echo-v000-metx4           0/1       CrashLoopBackOff   44         3h
spkr-front50-v000-nqfrx        0/1       Running            29         3h
spkr-gate-v000-ep56r           1/1       Running            0          3h
spkr-igor-v000-svkwb           0/1       CrashLoopBackOff   44         3h
spkr-orca-v000-bdeig           0/1       CrashLoopBackOff   44         3h

我目前有2.5个问题,我不知道如何解决:

  • orca服务无法连接到redis。它被连接拒绝了。我假设它尝试连接到localhost(或0.0.0.0)。日志仅显示带有java.net.ConnectException的stackstrace。如何将其指向正确的IP?我是否首先启动redis服务并找出它最终的位置?
  • 连接到cassandra的echo服务的类似问题。我得到一个:PoolTimeoutException:[host = localhost(127.0.0.1):9160。我假设它想尝试连接到cassandra,因为那将是端口。这种连接应该如何工作?运行cassandra并从我最终的更新ip?由于一切都是动态的,我希望找到一些服务名称关系,但我不确定在配置的-local.yml文件中放入什么。
  • 第三个问题在于igor。虽然travis被禁用,但它抱怨一个空的githubToken。一旦我勇敢地重新开始整个事情,我就会尝试一些价值观。

欢迎任何提示:)

非常感谢!

更新:在@lwander指向我检查spinnaker-local.yml文件后,我注意到该文件可能是从default-spinnaker-local.yml创建的文件的副本。我恢复了这一点并再次尝试:

$ kubectl get pods
NAME                           READY     STATUS             RESTARTS   AGE
data-cassandra-v000-gxgtv      1/1       Running            0          19m
data-redis-master-v000-y4iug   1/1       Running            0          20m
spkr-clouddriver-v000-xe3pe    1/1       Running            0          13m
spkr-deck-v000-mvs88           1/1       Running            0          13m
spkr-echo-v000-tjnk9           0/1       CrashLoopBackOff   6          13m
spkr-front50-v000-s4r61        0/1       Running            3          13m
spkr-gate-v000-5wz0f           0/1       Running            0          13m
spkr-igor-v000-xqv9g           1/1       Running            0          13m
spkr-orca-v000-ahz47           0/1       CrashLoopBackOff   6          13m

但我仍然遇到连接错误,只是主机名不再是localhost,而是以.spinnaker.svc.cluster.local结尾 - 不确定那些也是我需要更改的值还是应该有效的值?

$ kubectl logs spkr-echo-v000-tjnk9
Caused by: com.netflix.astyanax.connectionpool.exceptions.PoolTimeoutException: PoolTimeoutException: [host=data-cassandra.spinnaker.svc.cluster.local(data-cassandra.spinnaker.svc.cluster.local):9160, latency=2000(2000), attempts=1]Timed out waiting for connection
        at com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.waitForConnection(SimpleHostConnectionPool.java:231)
        at com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.borrowConnection(SimpleHostConnectionPool.java:198)
        at com.netflix.astyanax.connectionpool.impl.RoundRobinExecuteWithFailover.borrowConnection(RoundRobinExecuteWithFailover.java:84)
        at com.netflix.astyanax.connectionpool.impl.AbstractExecuteWithFailoverImpl.tryOperation(AbstractExecuteWithFailoverImpl.java:117)
        at com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool.executeWithFailover(AbstractHostPartitionConnectionPool.java:352)
        at com.netflix.astyanax.thrift.ThriftKeyspaceImpl.executeOperation(ThriftKeyspaceImpl.java:517)
        at com.netflix.astyanax.thrift.ThriftKeyspaceImpl.internalDescribeKeyspace(ThriftKeyspaceImpl.java:268)
        at com.netflix.astyanax.thrift.ThriftKeyspaceImpl.describeKeyspace(ThriftKeyspaceImpl.java:264)
        at com.netflix.scheduledactions.persistence.cassandra.ThriftCassandraDao.createColumnFamily(ThriftCassandraDao.java:81)
        ... 70 more


$ kubectl logs spkr-orca-v000-ahz47
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
        ... 21 more
Caused by: java.net.UnknownHostException: data-redis-server.spinnaker.svc.cluster.local
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at redis.clients.jedis.Connection.connect(Connection.java:158)
        ... 44 more


$ kubectl logs spkr-igor-v000-xqv9g
Caused by: java.net.UnknownHostException: spkr-clouddriver.spinnaker.svc.cluster.local: unknown error
        at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
        at java.net.InetAddress.getAllByName(InetAddress.java:1192)
        at java.net.InetAddress.getAllByName(InetAddress.java:1126)
        at com.squareup.okhttp.internal.Network$1.resolveInetAddresses(Network.java:29)

更新2:连接部件似乎并不太遥远。 kubernetes集群的fabric8 ui似乎认识到了它的大部分内容。

fabric8 overview

0 个答案:

没有答案