Upgrade Cozystack
Upgrade Cozystack system components.
Upgrade Cozystack
Check current cozystack status
kubectl get hr -A | grep -v "True"
Repair helmreleases if nessesary.
Make sure that the cozystack config map contains all the necessary variables.
kubectl get configmap -n cozy-system cozystack -oyaml
Example output:
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
version=vX.Y.Z
kubectl apply -f https://github.com/aenix-io/cozystack/raw/$version/manifests/cozystack-installer.yaml
Check cozystack status
kubectl get pods -n cozy-system
kubectl get hr -A | grep -v "True"
If pod status is failure, check logs.
kubectl logs deploy/cozystack -n cozy-system --previous
Last modified 2024-12-27: feature/add-upgrade-doc (#63) (1b20f7f)