とんちゃんといっしょ

Cloudに関する技術とか日常とかについて書いたり書かなかったり

Spinnakerのupdate方法

7月から別件で忙しくて触れてなかったのでとりあえずアップデートのやり方を調べて実施したのでメモ。

1. halyardのupdate

$ sudo update-halyard
$ hal --version
1.12.0-20181024113436

2. 利用可能なバージョンの確認

$ hal version list
+ Get current deployment
  Success
+ Get Spinnaker version
  Success
+ Get released versions
  Success
+ You are on version "1.7.6", and the following are available:
 - 1.7.8 (Ozark):
   Changelog: https://gist.github.com/spinnaker-release/75f98544672a4fc490d451c14688318e
   Published: Wed Aug 29 19:09:57 UTC 2018
   (Requires Halyard >= 1.0.0)
 - 1.8.7 (Dark):
   Changelog: https://gist.github.com/spinnaker-release/ebb5e45e84de5b4381b422e3c8679b5a
   Published: Fri Sep 28 17:58:52 UTC 2018
   (Requires Halyard >= 1.0.0)
 - 1.9.5 (Bright):
   Changelog: https://gist.github.com/spinnaker-release/d24a2c737db49dda644169cf5fe6d56e
   Published: Mon Oct 01 17:15:37 UTC 2018
   (Requires Halyard >= 1.0.0)
 - 1.10.1 (Maniac):
   Changelog: https://gist.github.com/spinnaker-release/9a46f497a6e081e1ef8f12867b0ee3c6
   Published: Wed Oct 24 17:04:36 UTC 2018
   (Requires Halyard >= 1.11)

1.10.1が使えるらしいので最新版にしてみる

3. バージョンの設定

$ hal config version edit --version 1.10.1
+ Get current deployment
  Success
+ Edit Spinnaker version
  Success
+ Spinnaker has been configured to update/install version "1.10.1".
  Deploy this version of Spinnaker with `hal deploy apply`.

4. 設定のアプライ

$ hal deploy apply
+ Get current deployment
  Success
+ Prep deployment
  Success
Problems in
  default.provider.dockerRegistry.spinnaker-gcr-account:
- WARNING Your docker registry has no repositories specified, and
  the registry's catalog is empty. Spinnaker will not be able to deploy any images
  until some are pushed to this registry.
? Manually specify some repositories for this docker registry to
  index.

Problems in default.security:
- WARNING Your UI or API domain does not have override base URLs
  set even though your Spinnaker deployment is a Distributed deployment on a
  remote cloud provider. As a result, you will need to open SSH tunnels against
  that deployment to access Spinnaker.
? We recommend that you instead configure an authentication
  mechanism (OAuth2, SAML2, or x509) to make it easier to access Spinnaker
  securely, and then register the intended Domain and IP addresses that your
  publicly facing services will be using.

+ Preparation complete... deploying Spinnaker
+ Get current deployment
  Success
+ Apply deployment
  Success
+ Deploy spin-clouddriver
  Success
+ Deploy spin-front50
  Success
+ Deploy spin-orca
  Success
+ Deploy spin-deck
  Success
+ Deploy spin-echo
  Success
+ Deploy spin-gate
  Success
+ Deploy spin-igor
  Success
+ Deploy spin-kayenta
  Success
+ Deploy spin-rosco
  Success
+ Run `hal deploy connect` to connect to Spinnaker.

5. バージョンの確認

$ hal version list
+ Get current deployment
  Success
+ Get Spinnaker version
  Success
+ Get released versions
  Success
+ You are on version "1.10.1", and the following are available:

おわり