hostconfig-operator/demo_examples/example_reconcile.yaml

21 lines
475 B
YAML

# This example CR when created executes the shell and
# kubeadm commands on the nodes labelled as master for
# every 30s.
apiVersion: hostconfig.airshipit.org/v1alpha1
kind: HostConfig
metadata:
annotations:
ansible.sdk.operatorframework.io/reconcile-period: "30s"
name: example9
spec:
host_groups:
- name: "kubernetes.io/role"
values:
- "master"
config:
exec:
- name: test.sh
kubeadm:
- command: "alpha certs check-expiration"