
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
21 lines
475 B
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.operator-sdk/reconcile-period: "30s"
|
|
name: example9
|
|
spec:
|
|
host_groups:
|
|
- name: "kubernetes.io/role"
|
|
values:
|
|
- "master"
|
|
config:
|
|
shell:
|
|
- command: "date;hostname"
|
|
kubeadm:
|
|
- command: "alpha certs check-expiration"
|