|
1 | 1 | --- |
2 | | -from: v0.43 |
| 2 | +from: v0.46 |
3 | 3 | to: main |
4 | 4 | --- |
5 | 5 |
|
@@ -36,7 +36,7 @@ to: main |
36 | 36 |
|
37 | 37 | - [ ] Disable alert notifications during the upgrade. e.g using [Alertmanager silences](https://prometheus.io/docs/alerting/latest/alertmanager/#silences). |
38 | 38 |
|
39 | | -## Automatic method |
| 39 | +## Steps |
40 | 40 |
|
41 | 41 | 1. Switch to the main branch and pull the latest changes: |
42 | 42 |
|
@@ -74,53 +74,6 @@ to: main |
74 | 74 | ./bin/ck8s upgrade both "${CK8S_CLUSTER}" apply |
75 | 75 | ``` |
76 | 76 |
|
77 | | -## Manual method |
78 | | - |
79 | | -> [!warning] |
80 | | -> When running migration snippets manually you must be sure to set the target cluster, this must be set and exported for both the prepare and apply upgrade steps! |
81 | | - |
82 | | -1. Set upgrade target |
83 | | - |
84 | | - Set to upgrade `both` the service cluster and workload cluster together, or `sc` or `wc` to upgrade them separately. |
85 | | - |
86 | | - ```bash |
87 | | - export CK8S_CLUSTER="<both|sc|wc>" |
88 | | - ``` |
89 | | - |
90 | | -### Prepare upgrade |
91 | | - |
92 | | -> _Non-disruptive, done before maintenance window._ |
93 | | - |
94 | | -1. Switch to the main branch and pull the latest changes: |
95 | | - |
96 | | - ```bash |
97 | | - git switch main |
98 | | - git pull |
99 | | - ``` |
100 | | - |
101 | | -1. Update configuration: |
102 | | - |
103 | | - This will take a backup into `backups/` before modifying any files. |
104 | | - |
105 | | - ```bash |
106 | | - ./migration/main/prepare/50-init.sh |
107 | | -
|
108 | | - # Check if any NetworkPolicy IPs need to be updated |
109 | | - ./bin/ck8s update-ips "${CK8S_CLUSTER}" dry-run |
110 | | - # Apply the changes if you agree with them |
111 | | - ./bin/ck8s update-ips "${CK8S_CLUSTER}" apply |
112 | | - ``` |
113 | | - |
114 | | -### Apply upgrade - _disruptive_ |
115 | | - |
116 | | -> **Disruptive, done during maintenance window.** |
117 | | - |
118 | | -1. Upgrade applications: |
119 | | - |
120 | | - ```bash |
121 | | - ./migration/main/apply/80-apply.sh execute |
122 | | - ``` |
123 | | - |
124 | 77 | ## Postrequisites |
125 | 78 |
|
126 | 79 | - [ ] Ensure the environment is in a good state: |
|
0 commit comments