Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions charts/karpenter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ spec:
value: "{{ .Values.controller.healthProbe.port }}"
- name: CLUSTER_ID
value: {{ .Values.controller.settings.clusterID }}
- name: CLUSTER_CNI
value: {{ .Values.controller.settings.clusterCNI }}
- name: TELEMETRY_SHARE
value: "{{ .Values.controller.settings.telemetryShare }}"
- name: KUBERNETES_MIN_VERSION
Expand Down
41 changes: 41 additions & 0 deletions charts/karpenter/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,44 @@ rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "karpenter.fullname" . }}-lease
namespace: kube-node-lease
labels:
{{- include "karpenter.labels" . | nindent 4 }}
{{- with .Values.additionalAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ include "karpenter.fullname" . }}-lease
subjects:
- kind: ServiceAccount
name: {{ template "karpenter.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "karpenter.fullname" . }}-lease
namespace: kube-node-lease
labels:
{{- include "karpenter.labels" . | nindent 4 }}
{{- with .Values.additionalAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
# Read
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "list", "watch"]
# Write
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["delete"]
2 changes: 0 additions & 2 deletions charts/karpenter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ controller:
affinity: {}
tolerations: []
settings:
# -- The network cni used by the cluster.
clusterCNI: terway-eniip
# -- The external kubernetes cluster id for new nodes to connect with.
clusterID: ""
# -- 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%.
Expand Down