mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 19:58:07 +03:00
MetalLB: keep nodeSelector in one place (#7931)
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
This commit is contained in:
@@ -6,8 +6,10 @@ metallb_port: "7472"
|
|||||||
metallb_memberlist_port: "7946"
|
metallb_memberlist_port: "7946"
|
||||||
metallb_peers: []
|
metallb_peers: []
|
||||||
metallb_speaker_enabled: true
|
metallb_speaker_enabled: true
|
||||||
metallb_speaker_nodeselector: {}
|
metallb_speaker_nodeselector:
|
||||||
metallb_controller_nodeselector: {}
|
kubernetes.io/os: "linux"
|
||||||
|
metallb_controller_nodeselector:
|
||||||
|
kubernetes.io/os: "linux"
|
||||||
metallb_speaker_tolerations:
|
metallb_speaker_tolerations:
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
key: node-role.kubernetes.io/master
|
key: node-role.kubernetes.io/master
|
||||||
|
|||||||
@@ -398,14 +398,12 @@ spec:
|
|||||||
- ALL
|
- ALL
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/os: linux
|
|
||||||
serviceAccountName: speaker
|
|
||||||
terminationGracePeriodSeconds: 2
|
|
||||||
{% if metallb_speaker_nodeselector %}
|
{% if metallb_speaker_nodeselector %}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ metallb_speaker_nodeselector | to_nice_yaml | indent(width=8) }}
|
{{ metallb_speaker_nodeselector | to_nice_yaml | indent(width=8) }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
serviceAccountName: speaker
|
||||||
|
terminationGracePeriodSeconds: 2
|
||||||
{% if metallb_speaker_tolerations %}
|
{% if metallb_speaker_tolerations %}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ metallb_speaker_tolerations | to_nice_yaml(indent=2) | indent(width=8) }}
|
{{ metallb_speaker_tolerations | to_nice_yaml(indent=2) | indent(width=8) }}
|
||||||
@@ -435,10 +433,6 @@ spec:
|
|||||||
app: metallb
|
app: metallb
|
||||||
component: controller
|
component: controller
|
||||||
spec:
|
spec:
|
||||||
{% if metallb_controller_nodeselector %}
|
|
||||||
nodeSelector:
|
|
||||||
{{ metallb_controller_nodeselector | to_nice_yaml | indent(width=8) }}
|
|
||||||
{%- endif %}
|
|
||||||
{% if metallb_controller_tolerations %}
|
{% if metallb_controller_tolerations %}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ metallb_controller_tolerations | to_nice_yaml(indent=2) | indent(width=8) }}
|
{{ metallb_controller_tolerations | to_nice_yaml(indent=2) | indent(width=8) }}
|
||||||
@@ -463,8 +457,10 @@ spec:
|
|||||||
drop:
|
drop:
|
||||||
- all
|
- all
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
|
{% if metallb_controller_nodeselector %}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/os: linux
|
{{ metallb_controller_nodeselector | to_nice_yaml | indent(width=8) }}
|
||||||
|
{%- endif %}
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 65534
|
runAsUser: 65534
|
||||||
|
|||||||
Reference in New Issue
Block a user