Skip to content

Commit 62fe69b

Browse files
committed
set default image as public existing image + update README
1 parent 6886bc4 commit 62fe69b

2 files changed

Lines changed: 35 additions & 6 deletions

File tree

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33
A 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+
```

config/manager/kustomization.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
14
resources:
2-
- manager.yaml
5+
- manager.yaml
36

47
generatorOptions:
58
disableNameSuffixHash: true
69

710
configMapGenerator:
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

0 commit comments

Comments
 (0)