Add option to enable federation on spire-server (#97)
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
spire-server:
|
||||||
|
federation:
|
||||||
|
enabled: true
|
||||||
@@ -57,6 +57,9 @@ A Helm chart to install the SPIRE server.
|
|||||||
| extraContainers | list | `[]` | |
|
| extraContainers | list | `[]` | |
|
||||||
| extraVolumeMounts | list | `[]` | |
|
| extraVolumeMounts | list | `[]` | |
|
||||||
| extraVolumes | list | `[]` | |
|
| extraVolumes | list | `[]` | |
|
||||||
|
| federation.bundleEndpoint.address | string | `"0.0.0.0"` | |
|
||||||
|
| federation.bundleEndpoint.port | int | `8443` | |
|
||||||
|
| federation.enabled | bool | `false` | |
|
||||||
| fullnameOverride | string | `""` | |
|
| fullnameOverride | string | `""` | |
|
||||||
| image.pullPolicy | string | `"IfNotPresent"` | |
|
| image.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
| image.registry | string | `"ghcr.io"` | |
|
| image.registry | string | `"ghcr.io"` | |
|
||||||
|
|||||||
@@ -29,6 +29,17 @@ data:
|
|||||||
common_name = {{ .common_name | quote }},
|
common_name = {{ .common_name | quote }},
|
||||||
{{- end }}
|
{{- end }}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{{- with .Values.federation }}
|
||||||
|
{{- if eq (.enabled | toString) "true" }}
|
||||||
|
federation {
|
||||||
|
bundle_endpoint {
|
||||||
|
address = "{{ .bundleEndpoint.address }}"
|
||||||
|
port = {{ .bundleEndpoint.port }}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
|||||||
@@ -16,5 +16,13 @@ spec:
|
|||||||
port: {{ .Values.service.port }}
|
port: {{ .Values.service.port }}
|
||||||
targetPort: grpc
|
targetPort: grpc
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- with .Values.federation }}
|
||||||
|
{{- if eq (.enabled | toString) "true" }}
|
||||||
|
- name: federation
|
||||||
|
port: {{ .bundleEndpoint.port }}
|
||||||
|
targetPort: federation
|
||||||
|
protocol: TCP
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
{{- include "spire-server.selectorLabels" . | nindent 4 }}
|
{{- include "spire-server.selectorLabels" . | nindent 4 }}
|
||||||
|
|||||||
@@ -57,6 +57,13 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: healthz
|
name: healthz
|
||||||
|
{{- with .Values.federation }}
|
||||||
|
{{- if eq (.enabled | toString) "true" }}
|
||||||
|
- name: federation
|
||||||
|
containerPort: {{ .bundleEndpoint.port }}
|
||||||
|
protocol: TCP
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if (dig "telemetry" "prometheus" "enabled" .Values.telemetry.prometheus.enabled .Values.global) }}
|
{{- if (dig "telemetry" "prometheus" "enabled" .Values.telemetry.prometheus.enabled .Values.global) }}
|
||||||
- containerPort: 9988
|
- containerPort: 9988
|
||||||
name: prom
|
name: prom
|
||||||
|
|||||||
@@ -17,4 +17,12 @@ spec:
|
|||||||
args: ['-zvw3', '{{ include "spire-server.fullname" . }}', '{{ .Values.service.port }}']
|
args: ['-zvw3', '{{ include "spire-server.fullname" . }}', '{{ .Values.service.port }}']
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 8 }}
|
{{- toYaml .Values.securityContext | nindent 8 }}
|
||||||
|
{{- if eq (.Values.federation.enabled | toString) "true" }}
|
||||||
|
- name: wget-federation-bundle-endpoint
|
||||||
|
image: busybox
|
||||||
|
command: ['wget']
|
||||||
|
args: ['--no-check-certificate', '-O', '/dev/null', 'https://{{ include "spire-server.fullname" . }}.{{ include "spire-server.namespace" . }}.svc.cluster.local:{{ .Values.federation.bundleEndpoint.port }}']
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.securityContext | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
|||||||
@@ -87,6 +87,12 @@ trustDomain: example.org
|
|||||||
|
|
||||||
bundleConfigMap: spire-server
|
bundleConfigMap: spire-server
|
||||||
|
|
||||||
|
federation:
|
||||||
|
enabled: false
|
||||||
|
bundleEndpoint:
|
||||||
|
port: 8443
|
||||||
|
address: "0.0.0.0"
|
||||||
|
|
||||||
ca_subject:
|
ca_subject:
|
||||||
country: NL
|
country: NL
|
||||||
organization: Example
|
organization: Example
|
||||||
|
|||||||
Reference in New Issue
Block a user