You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. Deploy kubernetes-intranet and kube-dns-intranet Services
42
-
```
53
+
54
+
```sh
43
55
make kind-deploy-pre
44
56
```
57
+
45
58
The above command will deploy kubernetes-intranet and kube-dns-intranet Services in the created kubeocean-manager cluster to prepare for kubeocean component deployment and usage.
46
59
47
60
5. Deploy kubeocean components in kubeocean-manager cluster
48
-
```
61
+
62
+
```sh
49
63
# Load images
50
64
KIND_CLUSTER_NAME=kubeocean-manager make kind-load-images
Create the above clusterbinding object in manager cluster:
116
-
```
145
+
146
+
```sh
117
147
kubectl config use-context kind-kubeocean-manager
118
-
kubectl apply -f cb1.yaml
148
+
kubectl apply -f cb.yaml
119
149
```
150
+
120
151
After the above command is executed, you can check if the corresponding clusterbinding status is Ready:
152
+
153
+
```sh
154
+
kubectl get cb cb-$CLUSTER_NAME
121
155
```
122
-
kubectl get cb cb-worker1
123
-
```
156
+
124
157
Expected execution result:
158
+
159
+
```sh
160
+
NAME PHASE AGE
161
+
cb-kubeocean-worker1 Ready Xs
125
162
```
126
-
NAME CLUSTERID PHASE
127
-
cb-worker1 cls-worker1 Ready
128
-
```
163
+
129
164
At the same time, after cluster binding, corresponding worker and proxier pods will be synchronously created in the kubeocean-system namespace, which can be viewed with the following command:
130
-
```
165
+
166
+
```sh
131
167
kubectl -nkubeocean-system get po -owide
132
168
```
133
169
134
170
5. Extract computing resources to form virtual nodes
135
-
```
136
-
# rlp1.yaml
171
+
172
+
```sh
173
+
cat > rlp.yaml <<EOF
137
174
apiVersion: cloud.tencent.com/v1beta1
138
175
kind: ResourceLeasingPolicy
139
176
metadata:
140
-
name: rlp-worker1
177
+
name: rlp-$CLUSTER_NAME
141
178
spec:
142
-
cluster: cb-worker1
179
+
cluster: cb-$CLUSTER_NAME
143
180
forceReclaim: true
144
181
nodeSelector:
145
182
nodeSelectorTerms:
@@ -156,19 +193,26 @@ spec:
156
193
percent: 80 # Take the smaller of 4 CPUs or 80% of available CPUs
157
194
- resource: memory
158
195
percent: 90 # Take 90% of available memory
196
+
EOF
159
197
```
198
+
160
199
Create the above ResourceLeasingPolicy object in worker1 cluster to extract computing nodes:
200
+
201
+
```sh
202
+
kubectl config use-context kind-$CLUSTER_NAME
203
+
kubectl apply -f rlp.yaml
161
204
```
162
-
kubectl config use-context kind-kubeocean-worker1
163
-
kubectl apply -f rlp1.yaml
164
-
```
205
+
165
206
After the above command is executed, you can observe in the manager cluster whether computing nodes are extracted normally:
166
-
```
207
+
208
+
```sh
167
209
kubectl config use-context kind-kubeocean-manager
168
210
kubectl get node
169
211
```
212
+
170
213
If nodes starting with vnode are created, it means computing resource extraction is successful:
0 commit comments