File tree Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Original file line number Diff line number Diff line change 50
50
value : " {{ .Values.controller.healthProbe.port }}"
51
51
- name : CLUSTER_ID
52
52
value : {{ .Values.controller.settings.clusterID }}
53
- - name : CLUSTER_CNI
54
- value : {{ .Values.controller.settings.clusterCNI }}
55
53
- name : TELEMETRY_SHARE
56
54
value : " {{ .Values.controller.settings.telemetryShare }}"
57
55
- name : KUBERNETES_MIN_VERSION
Original file line number Diff line number Diff line change @@ -37,3 +37,44 @@ rules:
37
37
- apiGroups : [""]
38
38
resources : ["secrets"]
39
39
verbs : ["get", "list", "watch"]
40
+ ---
41
+ apiVersion : rbac.authorization.k8s.io/v1
42
+ kind : RoleBinding
43
+ metadata :
44
+ name : {{ include "karpenter.fullname" . }}-lease
45
+ namespace : kube-node-lease
46
+ labels :
47
+ {{- include "karpenter.labels" . | nindent 4 }}
48
+ {{- with .Values.additionalAnnotations }}
49
+ annotations :
50
+ {{- toYaml . | nindent 4 }}
51
+ {{- end }}
52
+ roleRef :
53
+ apiGroup : rbac.authorization.k8s.io
54
+ kind : Role
55
+ name : {{ include "karpenter.fullname" . }}-lease
56
+ subjects :
57
+ - kind : ServiceAccount
58
+ name : {{ template "karpenter.serviceAccountName" . }}
59
+ namespace : {{ .Release.Namespace }}
60
+ ---
61
+ apiVersion : rbac.authorization.k8s.io/v1
62
+ kind : Role
63
+ metadata :
64
+ name : {{ include "karpenter.fullname" . }}-lease
65
+ namespace : kube-node-lease
66
+ labels :
67
+ {{- include "karpenter.labels" . | nindent 4 }}
68
+ {{- with .Values.additionalAnnotations }}
69
+ annotations :
70
+ {{- toYaml . | nindent 4 }}
71
+ {{- end }}
72
+ rules :
73
+ # Read
74
+ - apiGroups : ["coordination.k8s.io"]
75
+ resources : ["leases"]
76
+ verbs : ["get", "list", "watch"]
77
+ # Write
78
+ - apiGroups : ["coordination.k8s.io"]
79
+ resources : ["leases"]
80
+ verbs : ["delete"]
Original file line number Diff line number Diff line change @@ -60,8 +60,6 @@ controller:
60
60
affinity : {}
61
61
tolerations : []
62
62
settings :
63
- # -- The network cni used by the cluster.
64
- clusterCNI : terway-eniip
65
63
# -- The external kubernetes cluster id for new nodes to connect with.
66
64
clusterID : " "
67
65
# -- The VM memory overhead as a percent that will be subtracted from the total memory for all instance types. The value of `0.075` equals to 7.5%.
You can’t perform that action at this time.
0 commit comments