Skip to content

Commit

Permalink
Updated to reflect latest versioning changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-zaitsev authored Jun 2, 2019
1 parent 0a91caa commit dbd6fb9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions docs/operator_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Deployments can be listed using the following command:
```
$ kubectl describe deployment clickhouse-operator -n kube-system
Name: clickhouse-operator
Namespace: kube-system
CreationTimestamp: Sat, 01 Jun 2019 23:44:46 +0300
Labels: app=clickhouse-operator
version=0.3.0
<...>
Pod Template:
Labels: app=clickhouse-operator
Expand All @@ -46,11 +50,17 @@ Pod Template:
Image: altinity/clickhouse-operator:latest
<...>
```

Version is labeled and can be also displayed with the command:
```
$ kubectl get deployment clickhouse-operator -L version -n kube-system
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE VERSION
clickhouse-operator 1 1 1 1 19h 0.3.0
```

If we want to update to the new version, we can run following command:

```
kubectl set image deployment.v1.apps/clickhouse-operator clickhouse-operator=altinity/clickhouse-operator:0.2.1 -n kube-system
kubectl set image deployment.v1.apps/clickhouse-operator clickhouse-operator=altinity/clickhouse-operator:0.3.0 -n kube-system
deployment.apps/clickhouse-operator image updated
```

Expand All @@ -70,7 +80,7 @@ Pod Template:
Service Account: clickhouse-operator
Containers:
clickhouse-operator:
Image: altinity/clickhouse-operator:0.2.1
Image: altinity/clickhouse-operator:0.3.0
<...>
```

Expand Down

0 comments on commit dbd6fb9

Please sign in to comment.