File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33A tiny controller for persisting labels and taints on a list of nodes.
44
5- ## NodeGroup
65
7- The NodeGroup schema can be found in ` api/v1alpha/nogroup_types.go ` .
6+ ## Deploy controller and CRD
7+
8+ ``` bash
9+ kustomize build config/default | kubectl apply -f -
10+ ```
11+
12+ ## Sample nodegroup manifest
13+
14+ ``` yml
15+ apiVersion : k8s.elx.cloud/v1alpha1
16+ kind : NodeGroup
17+ metadata :
18+ name : nodegroup-sample
19+ spec :
20+ members :
21+ - node1 # Kubernetes node name
22+ labels :
23+ name : value
24+ taints :
25+ - effect : " NoSchedule"
26+ key : key
27+ value : value
28+ ` ` `
Original file line number Diff line number Diff line change 1+ apiVersion : kustomize.config.k8s.io/v1beta1
2+ kind : Kustomization
3+
14resources :
2- - manager.yaml
5+ - manager.yaml
36
47generatorOptions :
58 disableNameSuffixHash : true
69
710configMapGenerator :
8- - name : manager-config
9- files :
10- - controller_manager_config.yaml
11+ - files :
12+ - controller_manager_config.yaml
13+ name : manager-config
14+
15+ images :
16+ - name : controller
17+ newName : quay.io/elastx/elx-nodegroup-controller
18+ newTag : v0.1
You can’t perform that action at this time.
0 commit comments