Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何配置Spinnaker以使用ElastiCache redis群集?_Redis_Amazon Elasticache_Spinnaker_Spinnaker Halyard - Fatal编程技术网

如何配置Spinnaker以使用ElastiCache redis群集?

如何配置Spinnaker以使用ElastiCache redis群集?,redis,amazon-elasticache,spinnaker,spinnaker-halyard,Redis,Amazon Elasticache,Spinnaker,Spinnaker Halyard,接下来,我尝试将Spinnaker配置为使用ElastiCache redis群集,并启用群集模式 Spinnaker: 1.40.2 Halyard: 0.35 Cloud driver provider: k8s (1.7.4) Cloud: AWS 我在群集模式下配置了ElastiCache Redis群集,它有其配置端点: redis-spinnaker.1234.clustercfg.use1.cache.amazonaws.com:6379 它有一个节点: 我创建了以下文件:ha

接下来,我尝试将Spinnaker配置为使用ElastiCache redis群集,并启用群集模式

Spinnaker: 1.40.2
Halyard: 0.35
Cloud driver provider: k8s (1.7.4)
Cloud: AWS
我在群集模式下配置了ElastiCache Redis群集,它有其配置端点:

redis-spinnaker.1234.clustercfg.use1.cache.amazonaws.com:6379
它有一个节点:

我创建了以下文件:
halyard/default/service settings/redis.yml

overrideBaseUrl: redis://redis-spinnaker.1234.clustercfg.use1.cache.amazonaws.com:6379
我也试过了

overrideBaseUrl: redis://redis-spinnaker-0001-001.1234.0001.use1.cache.amazonaws.com:6379
请注意,这两个地址都可以从集群访问

当我运行
halyard deploy apply
时,
spin gate
超时

/ Deploy spin-gate
  Timed out

And the whole deploy times out.
Problems in Global:
! ERROR Unexpected exception:
  DaemonTaskInterrupted(interruptedTime=1507614194943, message=Task interrupted at
  Tue Oct 10 05:43:14 UTC 2017 with message: Interrupted during reap by exception:
  null)

- Failed to deploy Spinnaker. Task killed because it was taking too
  long.

在这一点上,我不知道该怎么做才能使它工作?

我在elasticache redis方面取得了一些进展,如下所示:

$ cat .hal/default/service-settings/redis.yml 
overrideBaseUrl: redis://xxx.use1.cache.amazonaws.com:6379

$ cat .hal/default/profiles/gate-local.yml 
redis:
  configuration:
    secure: true
gate-local.yml的更改来自


虽然不能100%确定它是否有效,但至少所有spinnaker服务都启动了,而且即使在我关闭halyard启动的redis复制集后,它仍在表面上起作用

正如@DavidBlack所说,特定于elasticache,您还需要

# ~/.hal/default/profiles/gate-local.yml 
redis:
  configuration:
    secure: true
然后删除副本集、服务等,或者更简单地(取决于您的情况):
hal-deploy-clean和&hal-deploy-apply


如果您
hal部署clean
,请不要忘记重新应用任何其他配置(如已设置kubernetes服务的外部IP)。

我无法使spinnaker与群集/复制的elasticache redis一起工作,因此,我所做的就是只使用一个ElastiCache redis节点,然后在
spinnaker local.yml
中将
service.redis.host
设置到适当的redis端点,并在
gate local.yml
中将
中的
redis.configuration.secure
设置为true

我想知道如何添加
targetSize:0
来防止创建
redis
redisBootstrap
,甚至是正确的方法。这是一个多方面的组合,但关键是我使用的是
集群
模式。所以这感觉像是解决我问题的关键信息。我还在
服务设置/redis.yml
redis.configuration.secure:true
中设置
overrideBaseUrl
# ~/.hal/default/profiles/gate-local.yml 
redis:
  configuration:
    secure: true