-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2760 document suc upgrade recovery (#278)
* Move instruction for system-upgrade-controller to a new page Signed-off-by: Dimitris Karakasilis <[email protected]> * Explaing the usage of the new `--recovery` flag kairos-io/packages#1087 Signed-off-by: Dimitris Karakasilis <[email protected]> * Add version to system-upgrade-controller checkout Signed-off-by: Dimitris Karakasilis <[email protected]> * Bump suc version Signed-off-by: Dimitris Karakasilis <[email protected]> --------- Signed-off-by: Dimitris Karakasilis <[email protected]>
- Loading branch information
1 parent
d6ab622
commit 592f1f2
Showing
4 changed files
with
62 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
title: "Installing system-upgrade-controller" | ||
linkTitle: "System Upgrade Controller" | ||
weight: 4 | ||
date: 2024-10-2 | ||
description: Install the system-upgrade-controller | ||
--- | ||
|
||
To upgrade Kairos with Kubernetes, it is necessary to have [system-upgrade-controller](https://github.com/rancher/system-upgrade-controller) deployed on the target cluster. | ||
|
||
[The upstream documentation](https://github.com/rancher/system-upgrade-controller#deploying) on how to install the system-upgrade-controller, is this command: | ||
|
||
``` | ||
kubectl apply -k github.com/rancher/system-upgrade-controller | ||
``` | ||
|
||
This command requires the `git` command to be available in order to clone the remote repository. Kairos images, generally, don't include git. You will need to run this command from a machine which has `git` available and access to the cluster with a valid KUBECONFIG file. | ||
|
||
Alternatively, from withing the Kairos node, you can deploy the following `Job` which will clone the system-upgrade controller repository to the `/home/kairos` directory: | ||
|
||
``` | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: git | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: git | ||
image: alpine/git | ||
command: ["git", "clone", "--branch", "{{< system-upgrade-controller-version >}}", "https://github.com/rancher/system-upgrade-controller", "/homedir/system-upgrade-controller"] | ||
volumeMounts: | ||
- name: homedir | ||
mountPath: /homedir | ||
volumes: | ||
- name: homedir | ||
hostPath: | ||
path: /home/kairos | ||
type: Directory | ||
``` | ||
|
||
(make sure you checkout the desired branch/release) | ||
|
||
Then, from the `/home/kairos` directory, you can run this command to deploy the system-upgrade-controller: | ||
|
||
``` | ||
kubectl apply -k system-upgrade-controller | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters