Skip to content

Commit 8b111d1

Browse files
Feat: add helm values for k8s service host and port (#404)
* Feat: add helm values for k8s service host and port * Update deploy/chart/templates/daemonset.yaml Co-authored-by: Ashley Dumaine <[email protected]> --------- Co-authored-by: Ashley Dumaine <[email protected]>
1 parent fd8cd6e commit 8b111d1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

deploy/chart/templates/daemonset.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@ spec:
182182
{{- toYaml . | nindent 12 }}
183183
{{- end}}
184184
env:
185+
{{- if .Values.k8sServiceHost }}
186+
- name: KUBERNETES_SERVICE_HOST
187+
value: {{ .Values.k8sServiceHost }}
188+
{{- end }}
189+
{{- if .Values.k8sServicePort }}
190+
- name: KUBERNETES_SERVICE_PORT
191+
value: {{ .Values.k8sServicePort }}
192+
{{- end }}
185193
- name: LINODE_API_TOKEN
186194
valueFrom:
187195
secretKeyRef:

deploy/chart/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ containerSecurityContext:
3232
drop:
3333
- ALL
3434

35+
# Used to set KUBERNETES_SERVICE_HOST in environment variable if required.
36+
k8sServiceHost: ""
37+
38+
# Used to set KUBERNETES_SERVICE_PORT in environment variable if required.
39+
k8sServicePort: ""
40+
3541
# Image repository must be 'linode/linode-cloud-controller-manager'. The tag can be changed/set to various ccm versions.
3642
# The pullPolicy is set to Always but can be changed when it is not required to always pull the new image
3743
image:

0 commit comments

Comments
 (0)