hostconfig-operator/demo_examples/example_host_groups.yaml
Sirisha Gopigiri 46576c9cfe Zuul Gates for hostconfig repository and updated code for cron job, resiliency feature
Scripts and files to build initial zuul gates for the
hostconfig repository.

Added cronjob feature - Executing the HostConfig CRs
based on the reconcile-period. This features also adds
support for reconcile execution based on number
of iterations and reconcile-interval specified.

Update the docs with the Node-resiliency observations
tested with hostconfig-operator pod.

Change-Id: Ic0a2f110d709236f9eb23756e3776d4104dd832f
2020-09-16 17:01:48 +00:00

19 lines
416 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:
shell:
- command: "date;hostname"
kubeadm:
- command: "alpha certs check-expiration"