hostconfig-operator/demo_examples/example_host_groups.yaml

17 lines
341 B
YAML

# This example executes the shell and kubeadm commands
# on all the nodes labelled as master nodes in the
# kubernetes cluster
apiVersion: hostconfig.airshipit.org/v1alpha1
kind: HostConfig
metadata:
name: example1
spec:
host_groups:
- name: "kubernetes.io/role"
values:
- "master"
config:
exec:
- name: test.sh