Skip to content

Commit 12d2d66

Browse files
committed
feat(helm): add allowControlPlane to allow to deploy NuvlaEdge on a control-plane node
1 parent efa0d56 commit 12d2d66

9 files changed

Lines changed: 54 additions & 0 deletions

helm/templates/agent-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ spec:
1919
serviceAccountName: {{ .Values.serviceAccount.name }}
2020
nodeSelector:
2121
kubernetes.io/hostname: {{ .Values.kubernetesNode }}
22+
{{- if .Values.allowControlPlane }}
23+
tolerations:
24+
- key: "node-role.kubernetes.io/control-plane"
25+
operator: "Exists"
26+
effect: "NoSchedule"
27+
{{- end }}
2228
containers:
2329
# AGENT
2430
- name: agent

helm/templates/kubernetes-credentials-manager-job.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ spec:
1515
serviceAccountName: {{ .Values.serviceAccount.name }}
1616
nodeSelector:
1717
kubernetes.io/hostname: {{ .Values.kubernetesNode }}
18+
{{- if .Values.allowControlPlane }}
19+
tolerations:
20+
- key: "node-role.kubernetes.io/control-plane"
21+
operator: "Exists"
22+
effect: "NoSchedule"
23+
{{- end }}
1824
containers:
1925
- name: kubernetes-credentials-manager
2026
image: "{{ .Values.nuvlaedge.image.registry }}{{ .Values.nuvlaedge.image.organization }}/{{ .Values.nuvlaedge.image.repository }}:{{ .Values.nuvlaedge.image.tag | default .Chart.AppVersion }}"

helm/templates/peripheral-manager-bluetooth-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ spec:
2222
dnsPolicy: ClusterFirstWithHostNet
2323
nodeSelector:
2424
kubernetes.io/hostname: {{ .Values.kubernetesNode }}
25+
{{- if .Values.allowControlPlane }}
26+
tolerations:
27+
- key: "node-role.kubernetes.io/control-plane"
28+
operator: "Exists"
29+
effect: "NoSchedule"
30+
{{- end }}
2531
containers:
2632
- name: peripheral-manager-bluetooth
2733
command: ["bluetooth"]

helm/templates/peripheral-manager-gpu-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ spec:
2020
spec:
2121
nodeSelector:
2222
kubernetes.io/hostname: {{ .Values.kubernetesNode }}
23+
{{- if .Values.allowControlPlane }}
24+
tolerations:
25+
- key: "node-role.kubernetes.io/control-plane"
26+
operator: "Exists"
27+
effect: "NoSchedule"
28+
{{- end }}
2329
containers:
2430
- name: peripheral-manager-gpu
2531
command: ["gpu"]

helm/templates/peripheral-manager-modbus-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ spec:
2020
spec:
2121
nodeSelector:
2222
kubernetes.io/hostname: {{ .Values.kubernetesNode }}
23+
{{- if .Values.allowControlPlane }}
24+
tolerations:
25+
- key: "node-role.kubernetes.io/control-plane"
26+
operator: "Exists"
27+
effect: "NoSchedule"
28+
{{- end }}
2329
containers:
2430
- name: peripheral-manager-modbus
2531
command: ["modbus"]

helm/templates/peripheral-manager-network-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ spec:
2222
dnsPolicy: ClusterFirstWithHostNet
2323
nodeSelector:
2424
kubernetes.io/hostname: {{ .Values.kubernetesNode }}
25+
{{- if .Values.allowControlPlane }}
26+
tolerations:
27+
- key: "node-role.kubernetes.io/control-plane"
28+
operator: "Exists"
29+
effect: "NoSchedule"
30+
{{- end }}
2531
containers:
2632
- name: peripheral-manager-network
2733
command: ["network"]

helm/templates/peripheral-manager-usb-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ spec:
2222
dnsPolicy: ClusterFirstWithHostNet
2323
nodeSelector:
2424
kubernetes.io/hostname: {{ .Values.kubernetesNode }}
25+
{{- if .Values.allowControlPlane }}
26+
tolerations:
27+
- key: "node-role.kubernetes.io/control-plane"
28+
operator: "Exists"
29+
effect: "NoSchedule"
30+
{{- end }}
2531
containers:
2632
- name: peripheral-manager-usb
2733
command: ["usb"]

helm/templates/security-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ spec:
2121
serviceAccountName: {{ .Values.serviceAccount.name }}
2222
nodeSelector:
2323
kubernetes.io/hostname: {{ .Values.kubernetesNode }}
24+
{{- if .Values.allowControlPlane }}
25+
tolerations:
26+
- key: "node-role.kubernetes.io/control-plane"
27+
operator: "Exists"
28+
effect: "NoSchedule"
29+
{{- end }}
2430
containers:
2531
- name: security
2632
image: "{{ .Values.nuvlaedge.image.registry }}{{ .Values.nuvlaedge.image.organization }}/{{ .Values.nuvlaedge.image.repository }}:{{ .Values.nuvlaedge.image.tag | default .Chart.AppVersion }}"

helm/templates/vpn-client-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ spec:
2323
dnsPolicy: ClusterFirstWithHostNet
2424
nodeSelector:
2525
kubernetes.io/hostname: {{ .Values.kubernetesNode }}
26+
{{- if .Values.allowControlPlane }}
27+
tolerations:
28+
- key: "node-role.kubernetes.io/control-plane"
29+
operator: "Exists"
30+
effect: "NoSchedule"
31+
{{- end }}
2632
containers:
2733
- name: {{ .Values.vpnClientComponentName }}
2834
command: ["openvpn-client"]

0 commit comments

Comments
 (0)