如何首次在本地启动大三角帆 [英] How to spin up spinnaker locally for the first time
问题描述
如何启动Spinnaker的本地版本?
How to spin up a local version of Spinnaker? This has been answered and addressed in detail here.
https://github.com/spinnaker/spinnaker/issues/1729
推荐答案
好我得到了它的帮助,但是没有您的宝贵帮助! @lwander
Ok, so I got it to work, but not without you valuable help! @lwander
因此,我将在此保留步骤以供后代使用。
So I'll leave the steps here for posterity.
每行是在命令行中,我已将其安装在具有全新安装的Ubuntu 14.04副本的虚拟机上,除了SSH之外,别无其他。然后以SSH身份作为root用户,您将需要在控制台上配置sshd以允许root用户访问。
Each line is a separate command in the command line, I've installed this on a virtual machine with a freshly installed Ubuntu 14.04 copy with nothing else than SSH. Then SSH as root, You will need to configure sshd on your console to allow root access.
https://askubuntu.com/questions/469143/how-to-enable-ssh-root-access-on-ubuntu- 14-04
> curl -O https://raw.githubusercontent.com/spinnaker/halyard/master/install/stable/InstallHalyard.sh
创建了 adm
和 sudo
组的用户帐户成员(这是必需的吗?)
created a user account member of the adm
and sudo
groups (is this necessary???)
然后安装Halyard:
then Install Halyard:
bash InstallHalyard.sh
验证已安装 HAL
并验证其版本。
Verify that HAL
is installed and validate its version.
hal -v
告诉Hal部署类型将是本地实例(这将在localhost中发布所有服务,以后将很难访问它们,但是我有一个转机,所以请继续阅读)
Tell Hal that the deployment type will be as a local instance (this will publish all services in localhost which will be tricky later in order to access them, but I have a turnaround so keep reading)
hal config部署编辑--type localdebian
Hal会抱怨尚未选择版本,只需告诉 HAL
哪个版本:
Hal will complain that a version has not been selected, just tell HAL
which version:
hal config版本edit --version 1.0.0
告诉 HAL
哪个存储
hal config storage edit --type redis
所以现在我们需要向 HAL
中添加云服务提供商,我们使用 AWS
,所以我们这样添加它:
So now we need to add a cloud provider to HAL
, we use AWS
so we add it like this:
hal config provider aws edit --access-key -id
XXXXXXXXXXXXXXXXXXXX -秘密访问密钥
hal config provider aws edit --access-key-id
XXXXXXXXXXXXXXXXXXXX--secret-access-key
我在以下位置创建了一个用户 AWS
并在 IAM
内向用户添加了访问密钥
用户安全凭据
标签。显然,我的 access-key-id
不是 XXXXXXXXXXXXXXXXXXXX
,我对其进行了编辑。您不需要输入秘密访问密钥
,因为命令会提示输入。
I created a user on AWS
and added access keys
to the user inside IAM
on the user security credentials
tab. Obviously my access-key-id
is not XXXXXXXXXXXXXXXXXXXX
, I edited it. You do not need to enter the secret-access-key
because the command will prompt for it.
然后您需要创建一个相对的用户名,或者只与您安装三角帆有关,但这将与您 AWS
帐户ID相关,因此在我的三角帆本地安装中,我选择了用户名 spinnakermaster
,您应该选择自己的!。而且我的AWS账户ID不是 YYYYYYYYYYYY
,我也进行了修改。
在AWS中进行工作所需的所有配置和步骤都在这里得到了很好的记录:
Then you need to create a username relative or that will only concern you spinnaker installation however this will get related to you AWS
Account-ID, so in MY spinnaker local installation I chose the username spinnakermaster
you should choose yours!. And my AWS Account ID is not YYYYYYYYYYYY
, I've edited too.
All the configurations and steps that you'll need to do inside AWS for this to work are really well documented here:
[ https://www.spinnaker.io/设置/提供者/aws/](https://www.spinnaker.io/setup/providers/aws/
)
告诉HAL以上是以下命令:
And to tell HAL of of the above here's the command:
hal config provider aws account add spinnakermaster --account-id YYYYYYYYYYYY --assume-role角色/ spinnakerManaged
毕竟,如果一切都按计划进行,我们可以要求HAL部署全新的大三角帆。
And after all that and if everything went according to plan we can ask HAL to deploy our brand new spinnaker installation.
hal deploy apply
它将开始长期安装下载并配置所有服务
完成后,您可以执行任何操作,但就我而言,我创建了一个监视脚本,如下所示:
It will begin a long installation downloading and configuring all the services. Once it has finished you may do whatever you like but in my case I created a monitoring script like the one described here:
https://github.com/spinnaker/spinnaker/ issue / 854
可以通过以下方式递归启动:
Which can be launched on a recursive manner as this:
watch -n1 spinnaker-status.sh
或直到 ctrl + C
it!。
然后可以访问您本地VM的大三角帆副本,您可以使用您选择的代理服务器设置反向代理,以将所有请求转发到本地主机,也可以简单地将SH **退出该主机重定向端口;
then to be able to access your local VM spinnaker copy you can either setup a reverse proxy with the proxy server of your choice to forward all the requests to localhost or you can simply ssh the SH** out of this redirecting the ports;
ssh root@ZZZ.ZZZ.ZZZ.ZZZ -L 9000:127.0.0.1:9000 -L 8084:127.0。 0.1:8084 -L 8083:127.0.0.1:8083 -L 7002:127.0.0.1:7002 -L 8087:127.0.0.1:8087 -L 8080:127.0.0.1:8080 -L 8088:127.0.0.1:8088 -L 8089:127.0.0.1:8089
显然, ZZZ.ZZZ.ZZZ.ZZZ
不是实际的IP地址。
Where obviously theZZZ.ZZZ.ZZZ.ZZZ
is not an actual IP Address.
最后要开始玩这个可爱的游戏,您必须转到浏览器选择并在地址栏中输入:
And finally to begin having fun with this cutie you have to go to your browser of choice and type into the address bar:
http://127.0.0.0:9000
希望这会有所帮助,并为每个人节省一些时间!。
Hope this helps and saves some time to everybody!.
干杯。
EN
这篇关于如何首次在本地启动大三角帆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!