@@ -82,6 +82,13 @@ metadata:
82
82
EOF
83
83
```
84
84
85
+ You can also create a Karmada CR directly using the sample provided by the Karmada operator.
86
+
87
+ ``` shell
88
+ kubectl create namespace test
89
+ kubectl apply -f operator/config/samples/karmada.yaml
90
+ ```
91
+
85
92
Wait for around 40 seconds, and the pods of the Karmada components will be running in the same namespace as the Karmada CR.
86
93
87
94
``` shell
@@ -91,10 +98,19 @@ karmada-demo-apiserver-55968d9f8c-mp8hf 1/1 Running 0
91
98
karmada-demo-controller-manager-64455f7fd4-stls6 1/1 Running 0 5s
92
99
karmada-demo-etcd-0 1/1 Running 0 37s
93
100
karmada-demo-kube-controller-manager-584f978bbd-fftwq 1/1 Running 0 5s
101
+ karmada-demo-metrics-adapter-57cb5f56b6-4vwk2 1/1 Running 0 5s
102
+ karmada-demo-metrics-adapter-57cb5f56b6-zbhjk 1/1 Running 0 5s
94
103
karmada-demo-scheduler-6d77b7547-hgz8n 1/1 Running 0 5s
95
104
karmada-demo-webhook-6f5944f5d8-bpkqz 1/1 Running 0 5s
96
105
```
97
106
107
+ ### Generate kubeconfig for karmada
108
+
109
+ ``` shell
110
+ kubectl get secret -n test karmada-demo-admin-config -o jsonpath={.data.kubeconfig} | base64 -d > ~ /.kube/karmada-apiserver.config
111
+ export KUBECONFIG=~ /.kube/karmada-apiserver.config
112
+ ```
113
+
98
114
> ** Tip** :
99
115
>
100
116
> If no ` spec.hostCluster.secretRef ` is specified in CR, the Karmada instance will be installed in the cluster where ` karmada-operator ` is located.
@@ -233,15 +249,11 @@ metadata:
233
249
namespace: test
234
250
spec:
235
251
components:
236
- KarmadaDescheduler : {}
252
+ karmadaDescheduler : {}
237
253
` ` `
238
254
239
255
If you want to install with the defaults, simply define an empty struct for `descheduler`.
240
256
241
- > **Tip**:
242
- >
243
- > Now, we only support installing the `descheduler` addon.
244
-
245
257
# # Contributing
246
258
247
259
The `karmada/operator` repo is part of Karmada from 1.5 onwards. If you're interested in
0 commit comments