Verified Commit d01ac9bf authored by Hugo's avatar Hugo
Browse files

ingress node taint

parent a1c67923
......@@ -15,6 +15,25 @@
label: "{{ item.key }}"
when: item.value.role == "worker"
- name: set node ingress taint
kubernetes.core.k8s:
kubeconfig: kubeconfig
state: present
definition:
apiVersion: v1
kind: Node
metadata:
name: "{{ cluster.name }}-{{ item.key }}"
spec:
taints:
- effect: NoSchedule
key: dedicate
value: ingress
loop: "{{ cluster.nodes | dict2items }}"
loop_control:
label: "{{ item.key }}"
when: item.value.role == "worker" and item.value.ingress
- name: add chart repositories
kubernetes.core.helm_repository:
name: "{{ item.name }}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment