Template is a feature of Accurate to propagate labels, annotations, and resources between normal Namespaces.
Any Namespace except for sub-namespaces can reference a template Namespace. So, a template Namespace can reference another template Namespace.
In the following examples, <name> represents a Namespace name to be changed.
Likewise, <template> represents a template Namespace name.
Using kubectl accurate:
kubectl accurate ns set-type <name> templateApplying YAML manifests:
apiVersion: v1
kind: Namespace
metadata:
name: <name>
labels:
accurate.cybozu.com/type: templateUsing kubectl accurate:
kubectl accurate ns set-type <name> noneApplying YAML manifests:
Remove accurate.cybozu.com/type label.
Using kubectl accurate:
kubectl accurate template set <name> <template>Applying YAML manifests:
apiVersion: v1
kind: Namespace
metadata:
name: <name>
labels:
accurate.cybozu.com/template: <template>Using kubectl accurate:
kubectl accurate template unset <name>Applying YAML manifests:
Remove accurate.cybozu.com/template label.