Skip to content

Instantly share code, notes, and snippets.

@yifan-gu
Last active August 15, 2017 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yifan-gu/9a3c334d7693eb376a0766f9504049b1 to your computer and use it in GitHub Desktop.
Save yifan-gu/9a3c334d7693eb376a0766f9504049b1 to your computer and use it in GitHub Desktop.
Upgrade to 1.7.1-tectonic.1 from 1.6.7-tectonic.2

Upload a payload to CoreUpdate

cd tectonic-installer

# make and sign the payload.
make payload
SIGN_WITH_TEST_KEY=true ./modules/update-payload/sign-payload.sh

# upload the payload
export AWS_ACCESS_KEY_ID=<id>
export AWS_SECRET_ACCESS_KEY=<key>
export COREUPDATE_USR=<user@coreos.com>
export COREUPDATE_KEY=<coreupdate_key>
export S3_PREFIX=https://s3-us-west-2.amazonaws.com/
export BUCKET=tectonic-update-payload-testing
export SERVER=https://public-update.staging.core-os.net
export APPID=1f650cdd-878d-4550-9013-6786be951696
export CHANNEL=test
./modules/update-payload/upload-payload.sh

# publish the payload
./modules/update-payload/publish-payload.sh test

Launch a cluster and Upgrade

  • Check out tectonic-installer:1.6.7-tectonic.2, launch a cluster
  • Replace the channel operator config to point to a test coreupdate server and channel, which has the latest payload:
cat<<EOF | kubectl replace -f -
apiVersion: coreos.com/v1
appID: 1f650cdd-878d-4550-9013-6786be951696
automaticUpdate: false
channel: test
etcdBackupRevision: ""
etcdBackupService: ""
kind: ChannelOperatorConfig
metadata:
  name: default
  namespace: tectonic-system
publicKeyOverride: |
  -----BEGIN PGP PUBLIC KEY BLOCK-----

  mQENBFkBC5cBCAC+L2HdvKPHVglOFuBpE3rKEAy7K3ccRvd386ESgn4SnYZBkrGP
  57zwaZM3tbWusdttALwJCRkHsO0knFgfF3Tavso4ekrdMT+W97TWKbKYjS38aq6E
  FbY/cX4SDdeY8x95VK5hk7a15lXLPGaX5u3au32kUMb9D03FCGMQWphV+SFbMW/v
  GxaDprJNTcO4aj4v2IDhu2/UJAyf/CKJlEYRpeDel18jqlVzqdf7zRpFA+RuTPWa
  6GRXy821wtzo33GdnZJu6SDlY7A/HyIMqGARge4i3zL+eywAIXd8JrQ9evCK/V0U
  41X7jJY8tY/MqNrxsuwuiBU9OHWDm1WDW/JvABEBAAG0IlRDTyBUZXN0IEtleSA8
  dGVzdGtleUBleGFtcGxlLmNvbT6JAU4EEwEIADgWIQSu3mDt0xQ4KHX0ssJ5xRzF
  nxHeeAUCWQELlwIbAwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgAAKCRB5xRzFnxHe
  eCk9CACaM0DxZO0W3La1GBj3rkkLj24ylxIvZbp5hYjK98M2fxshQ+i2R+sqt0SA
  pcyIFOQ27vrvGPTV+lHAKFIugIaEkm02aeEY8zDZxVQHRjytPe9vYEhtdsk9bSei
  yTKXEpFakF9CiVp/jqOYz8q3Rc0sD52wq+GZNmxL+12cFXAN1rqEWygHz2KlmPri
  C6cZC9WlPvlC/YKFIU85/tRv8QL5yBA4rauCi4z1fjbc44H7/yWplk3Q0r2awLjN
  NyhzeQRHzy7kG1VSVax/fzamXpWTNFUGWIFj+uedImuj2Fzd1X4oK9eT5WyjdjHQ
  BPFHOe7wEO9ZEQ5yNJSHSuuDSGCW
  =3tLg
  -----END PGP PUBLIC KEY BLOCK-----
server: https://public-update.staging.core-os.net
triggerUpdate: true
triggerUpdateCheck: true
updateCheckInterval: 2700
EOF
  • The upgrade should then start shortly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment