【问题标题】:Spinnaker: not able to access with localhost:9000 on Azure WMSpinnaker:无法在 Azure VM 上使用 localhost:9000 访问
【发布时间】:2016-08-23 08:36:56
【问题描述】:

我已在 Azure VM 上成功部署 Spinnaker。我能够通过“ssh”成功连接,curl http://9000curl http:8084/health 的输出是合适的。隧道是否按照记录进行。

但是,我无法通过我的主机浏览器打开 Deck UI。我的 Mac Chrome 浏览器中的 http://localhost:9000 说:

“无法访问此站点。localhost 拒绝连接。”

【问题讨论】:

  • 您是否打开了9000端口供外部访问(通过端点/网络安全组)
  • 谢谢大卫。是的,我已经在网络安全组的入站和出站规则中打开了端口 9000(对于任何源/目标)。

标签: azure spinnaker


【解决方案1】:

只要您的 VM 具有公共 IP/DNS,以下说明应该可以在 Mac 上运行,我只是针对我在订阅中的 Azure VM 上运行的 Spinnaker 实例进行了尝试。

• 在您的本地计算机上执行以下操作:

• 将其添加到 ~/.ssh/config(如果文件不存在,则创建它)并填充以下内容。赋予文件执行权限(chmod 700 ~/.ssh/config)

Host spinnaker-start
  HostName <Full DNS>
  ControlMaster yes
  ControlPath ~/.ssh/spinnaker-tunnel.ctl
  RequestTTY no
  LocalForward 9000 127.0.0.1:9000
  LocalForward 8084 127.0.0.1:8084
  LocalForward 8087 127.0.0.1:8087
  User <User name for your vm>

Host spinnaker-stop
  HostName <Full DNS>
  ControlPath ~/.ssh/spinnaker-tunnel.ctl
  RequestTTY no

• 创建一个包含以下内容的 spinnaker-tunnel.sh 文件,并赋予其执行权限 (chmod 700)

#!/bin/bash

socket=$HOME/.ssh/spinnaker-tunnel.ctl

if [ "$1" == "start" ]; then
  if [ ! \( -e ${socket} \) ]; then
    echo "Starting tunnel to Spinnaker..."
    ssh -f -N spinnaker-start && echo "Done."
  else
    echo "Tunnel to Spinnaker running."
  fi
fi

if [ "$1" == "stop" ]; then
  if [ \( -e ${socket} \) ]; then
    echo "Stopping tunnel to Spinnaker..."
    ssh -O "exit" spinnaker-stop && echo "Done."
  else
    echo "Tunnel to Spinnaker stopped."
  fi
fi

用法:要启动/停止 SSH 隧道,请执行以下命令

./spinnaker-tunnel.sh start

./spinnaker-tunnel.sh stop

【讨论】:

  • 非常感谢,拉里。最后,我能够使用 Spinnaker 连接到 Azure VM。
  • 当我尝试创建示例“Bake & Deploy test”管道时,在 Bake 阶段,管道被旋转的轮子卡住了。我尝试与 front50 和 echo 一起重新启动大三角帆服务,但仍然相同。能否请您指教。
  • 抱歉耽搁了。您需要配置 Rosco 服务:azure: enabled: true accounts: - name: {same as clouddriver} clientId: {same as clouddriver} appKey: {same as clouddriver} tenantId: {same as clouddriver} subscriptionId: {same as clouddriver} packerResourceGroup: {a pre-created resource group within the above subscription} storageAccount: {a pre-created storage account in the above resource group} 请注意,资源组和存储帐户设置仅允许图像在一个位置。
  • 如果您发布有关配置烘焙阶段的单独问题,我将发布更详细的答案。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-04-05
  • 1970-01-01
  • 2021-12-31
  • 2020-03-31
  • 1970-01-01
  • 1970-01-01
  • 2018-10-14
相关资源
最近更新 更多