Align healthz ports and checks across containers
Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
@@ -38,7 +38,7 @@ spec:
|
|||||||
- /run/spire/oidc/config/oidc-discovery-provider.conf
|
- /run/spire/oidc/config/oidc-discovery-provider.conf
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8008
|
- containerPort: 8008
|
||||||
name: health
|
name: healthz
|
||||||
{{- if not .Values.insecureScheme.enabled }}
|
{{- if not .Values.insecureScheme.enabled }}
|
||||||
- containerPort: 443
|
- containerPort: 443
|
||||||
name: https
|
name: https
|
||||||
@@ -57,13 +57,13 @@ spec:
|
|||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /ready
|
path: /ready
|
||||||
port: health
|
port: healthz
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /live
|
path: /live
|
||||||
port: health
|
port: healthz
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ A Helm chart to install the SPIRE agent.
|
|||||||
| bundleConfigMap | string | `"spire-bundle"` | |
|
| bundleConfigMap | string | `"spire-bundle"` | |
|
||||||
| clusterName | string | `"example-cluster"` | |
|
| clusterName | string | `"example-cluster"` | |
|
||||||
| fullnameOverride | string | `""` | |
|
| fullnameOverride | string | `""` | |
|
||||||
|
| healthChecks.port | int | `9980` | override the host port used for health checking |
|
||||||
| image.pullPolicy | string | `"IfNotPresent"` | |
|
| image.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
| image.registry | string | `"ghcr.io"` | |
|
| image.registry | string | `"ghcr.io"` | |
|
||||||
| image.repository | string | `"spiffe/spire-agent"` | |
|
| image.repository | string | `"spiffe/spire-agent"` | |
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ data:
|
|||||||
health_checks {
|
health_checks {
|
||||||
listener_enabled = true
|
listener_enabled = true
|
||||||
bind_address = "0.0.0.0"
|
bind_address = "0.0.0.0"
|
||||||
bind_port = "8080"
|
bind_port = {{ .Values.healthChecks.port | quote }}
|
||||||
live_path = "/live"
|
live_path = "/live"
|
||||||
ready_path = "/ready"
|
ready_path = "/ready"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ spec:
|
|||||||
image: {{ template "spire-agent.image" (dict "appVersion" $.Chart.AppVersion "image" .Values.image) }}
|
image: {{ template "spire-agent.image" (dict "appVersion" $.Chart.AppVersion "image" .Values.image) }}
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
args: ["-config", "/run/spire/config/agent.conf"]
|
args: ["-config", "/run/spire/config/agent.conf"]
|
||||||
|
ports:
|
||||||
|
- containerPort: {{ .Values.healthChecks.port }}
|
||||||
|
name: healthz
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: spire-config
|
- name: spire-config
|
||||||
mountPath: /run/spire/config
|
mountPath: /run/spire/config
|
||||||
@@ -58,13 +61,13 @@ spec:
|
|||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /live
|
path: /live
|
||||||
port: 8080
|
port: healthz
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /ready
|
path: /ready
|
||||||
port: 8080
|
port: healthz
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
@@ -61,6 +61,10 @@ bundleConfigMap: spire-bundle
|
|||||||
server:
|
server:
|
||||||
port: 8081
|
port: 8081
|
||||||
|
|
||||||
|
healthChecks:
|
||||||
|
# -- override the host port used for health checking
|
||||||
|
port: 9980
|
||||||
|
|
||||||
waitForIt:
|
waitForIt:
|
||||||
image:
|
image:
|
||||||
registry: cgr.dev
|
registry: cgr.dev
|
||||||
|
|||||||
@@ -43,10 +43,12 @@ spec:
|
|||||||
- name: grpc
|
- name: grpc
|
||||||
containerPort: 8081
|
containerPort: 8081
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
- containerPort: 8080
|
||||||
|
name: healthz
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /live
|
path: /live
|
||||||
port: 8080
|
port: healthz
|
||||||
failureThreshold: 2
|
failureThreshold: 2
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
@@ -54,7 +56,7 @@ spec:
|
|||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /ready
|
path: /ready
|
||||||
port: 8080
|
port: healthz
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
resources:
|
resources:
|
||||||
@@ -88,15 +90,17 @@ spec:
|
|||||||
- name: https
|
- name: https
|
||||||
containerPort: 9443
|
containerPort: 9443
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
- containerPort: 8008
|
||||||
|
name: healthz
|
||||||
# TODO: implement probes
|
# TODO: implement probes
|
||||||
# livenessProbe:
|
# livenessProbe:
|
||||||
# httpGet:
|
# httpGet:
|
||||||
# path: /
|
# path: /
|
||||||
# port: https
|
# port: healthz
|
||||||
# readinessProbe:
|
# readinessProbe:
|
||||||
# httpGet:
|
# httpGet:
|
||||||
# path: /
|
# path: /
|
||||||
# port: https
|
# port: healthz
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.controllerManager.resources | nindent 12 }}
|
{{- toYaml .Values.controllerManager.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
Reference in New Issue
Block a user