Make charts

pull/1448/head
Steven Crespo 2021-08-27 16:01:49 -07:00
parent 89ef8fdfbc
commit 761b271d7d
4 changed files with 17 additions and 20 deletions

View File

@ -1,15 +1,4 @@
questions:
- variable: clusterType
label: Cluster Type
description: Select the type of the cluster where vSphere CPI will be deployed
type: enum
default: "rke"
options:
- "rke"
- "rke2"
- "other"
group: Configuration
- variable: vCenter.host
label: vCenter Host
description: IP address or FQDN of the vCenter

View File

@ -26,12 +26,23 @@ spec:
{{- with .Values.cloudControllerManager.nodeSelector }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- else if eq .Values.clusterType "rke" }}
nodeSelector:
node-role.kubernetes.io/controlplane: "true"
{{- else if eq .Values.clusterType "rke2" }}
nodeSelector:
node-role.kubernetes.io/control-plane: "true"
{{- else }}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
# RKE node selector label
- key: node-role.kubernetes.io/controlplane
operator: In
values:
- "true"
- matchExpressions:
# RKE2 node selector label
- key: node-role.kubernetes.io/control-plane
operator: In
values:
- "true"
{{- end }}
securityContext:
runAsUser: 1001

View File

@ -17,9 +17,6 @@ cloudControllerManager:
rbac:
enabled: true
# Set to "rke" or "rke2" to apply the node selector label appropriate for the cluster
clusterType: "rke"
global:
cattle:
systemDefaultRegistry: ""