Skip to content

Quick Start

Once ConfigBundleOperator is installed, create a simple ConfigBundle:

my-bundle.yaml
apiVersion: training.k8s.operators.dev/v1
kind: ConfigBundle
metadata:
  name: my-bundle
  labels:
    faculty: CE
  annotations:
    creator: Mahdi # (1)!
spec:
  message: "Hello, Kubernetes!"
  immutable: false
  1. All labels and annotations will be applied to ConfigMap resource created by the operator.

Apply it to the cluster:

kubectl apply -f my-bundle.yaml

Check that the ConfigBundle exists:

kubectl get configbundle my-bundle

Then check for the ConfigMap created for it:

kubectl get configmaps

At this point, you should see both the ConfigBundle and its corresponding ConfigMap in the namespace.

The reconciliation behavior behind this process, including creation, updates, drift, and self-healing, is covered in detail in Behaviour.