21 lines
481 B
YAML
21 lines
481 B
YAML
# This CR executes the shell and kubeadm commands
|
|
# on the master nodes and stops execution on all the
|
|
# nodes whenever a master node fails at any task
|
|
# as part of the execution.
|
|
|
|
apiVersion: hostconfig.airshipit.org/v1alpha1
|
|
kind: HostConfig
|
|
metadata:
|
|
name: example6
|
|
spec:
|
|
host_groups:
|
|
- name: "kubernetes.io/role"
|
|
values:
|
|
- "master"
|
|
stop_on_failure: true
|
|
config:
|
|
exec:
|
|
- name: test.sh
|
|
kubeadm:
|
|
- command: "alpha certs check-expiration"
|