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
Copy file name to clipboardExpand all lines: docs/tags.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,18 +13,29 @@ Once the tag is removed from the instance, it will also be removed as a label on
13
13
14
14
### Non prefixed labels
15
15
16
-
It is possible to add labels nop prefixed with `k8s.scaleway.com`. The downside, is that when you will delete the associated tag, the label won't get removed.
16
+
It is possible to add labels not prefixed with `k8s.scaleway.com`. The downside, is that when you will delete the associated tag, the label won't get removed.
17
17
In order to have non prefixed labels, you should prefix the tag with `noprefix=`.
18
18
19
19
For intance the tag `noprefix=foo=bar` will yield the `foo=bar` label on the Kubernetes nodes.
20
20
21
+
This is the only way to add custom prefixed labels like `node.kubernetes.io`.
22
+
21
23
## Taints
22
24
23
25
In order for a tag to be synced to a taint, it needs to be of the form `taint=foo=bar:Effect`, where `Effect` is one of `NoExecute`, `NoSchedule` or `PreferNoSchedule`.
24
26
In this case, the Kubernetes nodes will have the taint `k8s.scaleway.com/foo=bar` with the effect `Effect`.
25
27
26
28
Once the tag is removed from the instance, it will also be removed as a taint on the node.
27
29
30
+
### Non prefixed Tains
31
+
32
+
It is possible to add taints not prefixed with `k8s.scaleway.com`. The downside, is that when you will delete the associated tag, the taint won't get removed.
33
+
In order to have non prefixed taints, you should prefix the taint with `taint=noprefix=`.
34
+
35
+
For intance the tag `taint=noprefix=foo=bar:Effect` will yield the `foo=bar` taint on the Kubernetes nodes with the `Effect` effect.
36
+
37
+
This is the only way to add custom prefixed taints like `node.kubernetes.io`.
38
+
28
39
## Special Kubernetes Labels
29
40
30
41
-`node.kubernetes.io/exclude-from-external-load-balancers` can be set on the Kubernetes nodes if this same value is set as a tag on the instance. It will have the value `managed-by-scaleway-ccm` and will be deleted if deleted from the tags.
klog.Errorf("tag %s value must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character", tag)
0 commit comments