Merge pull request #2300 from calvin0327/add-descheduler-chart-suffix
chart: add descheduler name suffix of chart deployment manifest
This commit is contained in:
commit
3698c92bcf
|
@ -7,6 +7,7 @@ Karmada aims to provide turnkey automation for multi-cluster application managem
|
||||||
## TL;DR
|
## TL;DR
|
||||||
|
|
||||||
Switch to the `root` directory of the repo.
|
Switch to the `root` directory of the repo.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
helm install karmada -n karmada-system --create-namespace --dependency-update ./charts/karmada
|
helm install karmada -n karmada-system --create-namespace --dependency-update ./charts/karmada
|
||||||
```
|
```
|
||||||
|
@ -23,6 +24,7 @@ To install the chart with the release name `karmada` in namespace `karmada-syste
|
||||||
- local installation
|
- local installation
|
||||||
|
|
||||||
Switch to the `root` directory of the repo.
|
Switch to the `root` directory of the repo.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
helm install karmada -n karmada-system --create-namespace --dependency-update ./charts/karmada
|
helm install karmada -n karmada-system --create-namespace --dependency-update ./charts/karmada
|
||||||
```
|
```
|
||||||
|
@ -30,17 +32,22 @@ helm install karmada -n karmada-system --create-namespace --dependency-update ./
|
||||||
- remote installation
|
- remote installation
|
||||||
|
|
||||||
First, add the Karmada chart repo to your local repository.
|
First, add the Karmada chart repo to your local repository.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ helm repo add karmada-charts https://raw.githubusercontent.com/karmada-io/karmada/master/charts
|
$ helm repo add karmada-charts https://raw.githubusercontent.com/karmada-io/karmada/master/charts
|
||||||
$ helm repo list
|
$ helm repo list
|
||||||
NAME URL
|
NAME URL
|
||||||
karmada-charts https://raw.githubusercontent.com/karmada-io/karmada/master/charts
|
karmada-charts https://raw.githubusercontent.com/karmada-io/karmada/master/charts
|
||||||
```
|
```
|
||||||
|
|
||||||
With the repo added, available charts and versions can be viewed.
|
With the repo added, available charts and versions can be viewed.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
helm search repo karmada
|
helm search repo karmada
|
||||||
```
|
```
|
||||||
|
|
||||||
Install the chart and specify the version to install with the --version argument. Replace <x.x.x> with your desired version.
|
Install the chart and specify the version to install with the --version argument. Replace <x.x.x> with your desired version.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
helm --namespace karmada-system upgrade -i karmada karmada-charts/karmada --version=<x.x.x> --create-namespace
|
helm --namespace karmada-system upgrade -i karmada karmada-charts/karmada --version=<x.x.x> --create-namespace
|
||||||
Release "karmada" does not exist. Installing it now.
|
Release "karmada" does not exist. Installing it now.
|
||||||
|
@ -60,19 +67,30 @@ kubectl get secret -n karmada-system karmada-kubeconfig -o jsonpath={.data.kubec
|
||||||
|
|
||||||
> **Tip**: List all releases using `helm list`
|
> **Tip**: List all releases using `helm list`
|
||||||
|
|
||||||
For better scheduling effect, you can choose to install the `karmada-descheduler` component in the karmada controller plane. Link: [here](../../docs/descheduler.md). The following is the specific installation guide.
|
### Install descheduler component
|
||||||
|
|
||||||
|
For better scheduling effect, you can choose to install the `karmada-descheduler` component in the karmada controller plane. We can install it together in `host` mode:
|
||||||
|
|
||||||
Edited values.yaml for karmada-descheduler
|
|
||||||
```YAML
|
|
||||||
installMode: "component"
|
|
||||||
components: [
|
|
||||||
"descheduler"
|
|
||||||
]
|
|
||||||
```
|
|
||||||
Execute command (switch to the `root` directory of the repo, and sets the `current-context` in a kubeconfig file)
|
|
||||||
```console
|
```console
|
||||||
kubectl config use-context host
|
helm upgrade --install karmada -n karmada-system --create-namespace --dependency-update \
|
||||||
helm install karmada-descheduler -n karmada-system ./charts/karmada
|
--cleanup-on-fail ./charts/karmada \
|
||||||
|
--set components={"descheduler"}
|
||||||
|
```
|
||||||
|
|
||||||
|
And then, check the pod status of karmada:
|
||||||
|
|
||||||
|
```console
|
||||||
|
kubectl get po -n karmada-system
|
||||||
|
NAME READY STATUS RESTARTS AGE
|
||||||
|
etcd-0 1/1 Running 0 2m12s
|
||||||
|
karmada-aggregated-apiserver-7769446f86-hc2jk 1/1 Running 2 (65s ago) 2m12s
|
||||||
|
karmada-apiserver-55bdd6b9c5-8s999 1/1 Running 0 2m12s
|
||||||
|
karmada-controller-manager-764cfd8d6c-lm67w 1/1 Running 2 (67s ago) 2m12s
|
||||||
|
karmada-descheduler-59749dc655-d4wsv 1/1 Running 0 2m12s
|
||||||
|
karmada-descheduler-59749dc655-sf9b7 1/1 Running 0 2m12s
|
||||||
|
karmada-kube-controller-manager-7b5cc7897-64lrp 1/1 Running 2 (42s ago) 2m12s
|
||||||
|
karmada-scheduler-66566879d5-xqqlc 1/1 Running 0 2m12s
|
||||||
|
karmada-webhook-749f5f75df-4l5h4 1/1 Running 2 (67s ago) 2m12s
|
||||||
```
|
```
|
||||||
|
|
||||||
## Uninstalling the Chart
|
## Uninstalling the Chart
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $name }}
|
name: {{ $name }}-descheduler
|
||||||
namespace: {{ include "karmada.namespace" . }}
|
namespace: {{ include "karmada.namespace" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "karmada.descheduler.labels" . | nindent 4 }}
|
{{- include "karmada.descheduler.labels" . | nindent 4 }}
|
||||||
|
|
Loading…
Reference in New Issue