From 1b20f7f3db7074c749d97712cc1b8c0a8054c0e5 Mon Sep 17 00:00:00 2001 From: klinch0 <68821526+klinch0@users.noreply.github.com> Date: Fri, 27 Dec 2024 20:58:06 +0300 Subject: [PATCH] feature/add-upgrade-doc (#63) * add-oidc-docs-2 * Update content/en/docs/oidc.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * add upgrade doc * Update content/en/docs/upgrade.md Co-authored-by: Andrei Kvapil * fix --------- Co-authored-by: Andrei Kvapil Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- content/en/docs/upgrade.md | 53 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 content/en/docs/upgrade.md diff --git a/content/en/docs/upgrade.md b/content/en/docs/upgrade.md new file mode 100644 index 0000000..ca66b6e --- /dev/null +++ b/content/en/docs/upgrade.md @@ -0,0 +1,53 @@ +--- +title: "Upgrade Cozystack" +linkTitle: "Upgrade" +description: "Upgrade Cozystack system components." +weight: 60 +--- + +## Upgrade Cozystack + +### Check current cozystack status +```bash +kubectl get hr -A | grep -v "True" +``` +Repair helmreleases if nessesary. +Make sure that the cozystack config map contains all the necessary variables. + +```bash +kubectl get configmap -n cozy-system cozystack -oyaml +``` +Example output: +```yaml +apiVersion: v1 +data: + api-server-endpoint: https://33.44.55.66:6443 + #bundle-enable: telepresence if nessesary + bundle-name: paas-full + ipv4-join-cidr: 100.64.0.0/16 + ipv4-pod-cidr: 10.244.0.0/16 + ipv4-pod-gateway: 10.244.0.1 + ipv4-svc-cidr: 10.96.0.0/16 + # oidc-enabled: "true" if nessesary + root-host: example.org +kind: ConfigMap +... +``` +And add missing key: value data. + +### Apply new version +```bash +version=vX.Y.Z +kubectl apply -f https://github.com/aenix-io/cozystack/raw/$version/manifests/cozystack-installer.yaml +``` + +### Check cozystack status +```bash +kubectl get pods -n cozy-system +kubectl get hr -A | grep -v "True" +``` + +If pod status is failure, check logs. +```bash +kubectl logs deploy/cozystack -n cozy-system --previous +```