22 lines
541 B
YAML
22 lines
541 B
YAML
# This CR executes the shell and kubeadm commands on the
|
|
# master nodes for every 30s. The execution happens for
|
|
# 3 times.
|
|
|
|
apiVersion: hostconfig.airshipit.org/v1alpha1
|
|
kind: HostConfig
|
|
metadata:
|
|
annotations:
|
|
ansible.sdk.operatorframework.io/reconcile-period: "30s"
|
|
ansible.sdk.operatorframework.io/reconcile-iterations: "3"
|
|
name: example10
|
|
spec:
|
|
host_groups:
|
|
- name: "kubernetes.io/role"
|
|
values:
|
|
- "master"
|
|
config:
|
|
exec:
|
|
- name: test.sh
|
|
kubeadm:
|
|
- command: "alpha certs check-expiration"
|