Skip to content

Instantly share code, notes, and snippets.

View yifan-gu's full-sized avatar

Yifan Gu yifan-gu

  • San Francisco
View GitHub Profile
@yifan-gu
yifan-gu / update-spec-example-1.4.5.json
Last active November 4, 2016 23:12
update-spec-example-1.4.5.json
{
"version": "1.4.5",
"deployments": [
{
"apiVersion": "extensions/v1beta1",
"kind": "Deployment",
"metadata": {
"name": "kube-version-controller",
"namespace": "tectonic-system",
"labels": {
@yifan-gu
yifan-gu / update-spec-example-1.4.7.json
Last active November 28, 2016 21:18
update-spec-example-1.4.7
{
"version": "1.4.7",
"deployments": [
{
"apiVersion": "extensions/v1beta1",
"kind": "Deployment",
"metadata": {
"name": "tectonic-channel-operator",
"namespace": "tectonic-system",
"labels": {
@yifan-gu
yifan-gu / update-spec-example-1.4.4.json
Created November 5, 2016 00:18
update-spec-example-1.4.4.json
{
"version": "1.4.4",
"deployments": [
{
"apiVersion": "extensions/v1beta1",
"kind": "Deployment",
"metadata": {
"name": "kube-version-controller",
"namespace": "tectonic-system",
"labels": {
@yifan-gu
yifan-gu / update-spec-example-1.4.3.json
Created November 5, 2016 01:13
update-spec-example-1.4.3.json
{
"version": "1.4.3",
"deployments": [
{
"apiVersion": "extensions/v1beta1",
"kind": "Deployment",
"metadata": {
"name": "kube-version-controller",
"namespace": "tectonic-system",
"labels": {
@yifan-gu
yifan-gu / tectonic-version-example-1.4.5-fake.json
Last active December 2, 2016 03:40
tectonic-version-example-1.4.5-fake.json (for jenkins e2e test, don't change)
{
"version": "1.4.5",
"deployments": [
{
"apiVersion": "extensions/v1beta1",
"kind": "Deployment",
"metadata": {
"name": "fake-kube-version-operator",
"namespace": "tectonic-system",
"labels": {
@yifan-gu
yifan-gu / update-payload.json
Last active December 2, 2016 04:28
tectonic-staging-alpha-test-payload (don't change)
{
"version": "1.4.5",
"deployments": [
{
"apiVersion": "extensions/v1beta1",
"kind": "Deployment",
"metadata": {
"name": "tectonic-channel-operator",
"namespace": "tectonic-system",
"labels": {
apiVersion: v1
kind: Namespace
metadata:
name: fluentd
labels:
app: fluentd
---
apiVersion: v1
kind: Secret
@yifan-gu
yifan-gu / examples.md
Last active February 21, 2017 21:19
AppVersion examples with taskStatuses and failureReason

Delete the kvo / tco deployment so they don't mess with the TPRs created below.

kubectl delete deployment tectonic-channel-operator -n tectonic-system
kubectl delete deployment kube-version-operator -n tectonic-system

Replace/create the TPR for kvo and tco

cat app-version-kubernetes.json
@yifan-gu
yifan-gu / example.md
Created March 1, 2017 02:29
check update

Initial state

kubectl get channeloperatorconfig default -o json -n tectonic-system
{
  "apiVersion": "coreos.com/v1",
  "kind": "ChannelOperatorConfig",
  "metadata":{
    "name": "default",
    "namespace": "tectonic-system"
  },
@yifan-gu
yifan-gu / instruction.md
Created March 14, 2017 00:57
instruction for 1.5.2-tectonic.2 clusters to switch coreupdate channel

As we are changing the channel model in CoreUpdate Server since 1.5.3-tectonic.1 release, users on clusters with older version (1.5.2-tectonic.2) need to manually modify their channel operator’s config to switch to the new CoreUpdate channel.

This can be done by replacing channel: alpha with channel: tectonic-1.5 in the channel operator’s config.

For example:

kubectl replace -f -<<EOF
apiVersion: coreos.com/v1
appID: 6bc7b986-4654-4a0f-94b3-84ce6feb1db4
automaticUpdate: false