Skip to content

Commit

Permalink
feat: support kubernetes-services-endpoint (#8443)
Browse files Browse the repository at this point in the history
* feat: support kubernetes-services-endpoint

fixes #7164

* Update charts/tigera-operator/values.yaml

Co-authored-by: Casey Davenport <caseydavenport@users.noreply.github.com>

* Update charts/tigera-operator/values.yaml

Co-authored-by: Casey Davenport <caseydavenport@users.noreply.github.com>

* Update charts/tigera-operator/README.md

* Update charts/tigera-operator/README.md

---------

Co-authored-by: Casey Davenport <caseydavenport@users.noreply.github.com>
  • Loading branch information
davhdavh and caseydavenport committed Jan 25, 2024
1 parent 7d934ae commit 3d1ee95
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions charts/tigera-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,9 @@ calicoctl:

# Configuration for the Calico CSI plugin - setting to None will disable the plugin, default: /var/lib/kubelet
kubeletVolumePluginPath: None

# Optionally configure the host and port used to access the Kubernetes API server.
kubernetesServiceEndpoint:
host: ""
port: "6443"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- if .Values.kubernetesServiceEndpoint.host -}}
kind: ConfigMap
apiVersion: v1
metadata:
name: kubernetes-services-endpoint
namespace: {{.Release.Namespace}}
data:
KUBERNETES_SERVICE_HOST: {{ .Values.kubernetesServiceEndpoint.host }}
KUBERNETES_SERVICE_PORT: {{ .Values.kubernetesServiceEndpoint.port }}
{{- end }}
7 changes: 6 additions & 1 deletion charts/tigera-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,9 @@ calicoctl:
image: docker.io/calico/ctl
tag: master

kubeletVolumePluginPath: /var/lib/kubelet
kubeletVolumePluginPath: /var/lib/kubelet

# Optionally configure the host and port used to access the Kubernetes API server.
kubernetesServiceEndpoint:
host: ""
port: "6443"

0 comments on commit 3d1ee95

Please sign in to comment.