Make service dns domain configurable (#164)
Co-authored-by: Marco Franssen <[email protected]> Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
co-authored by
Marco Franssen
parent
ec236e9762
commit
c661d0bc7e
@@ -28,6 +28,7 @@ A Helm chart to install the SPIRE server.
|
||||
| ca_subject.common_name | string | `"example.org"` | |
|
||||
| ca_subject.country | string | `"NL"` | |
|
||||
| ca_subject.organization | string | `"Example"` | |
|
||||
| clusterDomain | string | `"cluster.local"` | |
|
||||
| clusterName | string | `"example-cluster"` | |
|
||||
| controllerManager.enabled | bool | `false` | |
|
||||
| controllerManager.identities.dnsNameTemplates | list | `[]` | |
|
||||
|
||||
@@ -130,3 +130,11 @@ Create the name of the service account to use
|
||||
{{- .Values.bundleConfigMap }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "spire-server.cluster-domain" -}}
|
||||
{{- if ne (len (dig "k8s" "clusterDomain" "" .Values.global)) 0 }}
|
||||
{{- .Values.global.k8s.clusterDomain }}
|
||||
{{- else }}
|
||||
{{- .Values.clusterDomain }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -33,7 +33,7 @@ spec:
|
||||
- name: curl-federation-bundle-endpoint
|
||||
image: cgr.dev/chainguard/bash:latest
|
||||
command: ['curl']
|
||||
args: ['-k', '-s', '-f', 'https://{{ include "spire-server.fullname" . }}.{{ include "spire-server.namespace" . }}.svc.cluster.local:{{ .Values.federation.bundleEndpoint.port }}']
|
||||
args: ['-k', '-s', '-f', 'https://{{ include "spire-server.fullname" . }}.{{ include "spire-server.namespace" . }}.svc.{{ include "spire-server.cluster-domain" . }}:{{ .Values.federation.bundleEndpoint.port }}']
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 8 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -87,6 +87,9 @@ trustDomain: example.org
|
||||
|
||||
bundleConfigMap: spire-bundle
|
||||
|
||||
# -- This is the value of your clusters `kubeadm init --service-dns-domain` flag
|
||||
clusterDomain: cluster.local
|
||||
|
||||
federation:
|
||||
enabled: false
|
||||
bundleEndpoint:
|
||||
|
||||
Reference in New Issue
Block a user