Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge branch 'prometheus' of https://github.com/spiffe/helm-charts in…
Browse files Browse the repository at this point in the history
…to prometheus

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
  • Loading branch information
kfox1111 committed Feb 24, 2023
2 parents c3de3c0 + 6026bbf commit 8b0938a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -42,4 +42,8 @@ Any changes to Chart.yaml or values.yaml require an update of the README.md. Thi
./helm-docs.sh charts/«chart-name»
```

## Bumping Chart version

In contrary to many other Helm repositories we do NOT require contributors to increate the Chart version. We have customized our release pipeline so we can bundle various PRs in a single release. Maintainers of the helm-charts in this repo will take care of the semantic versioning.

[helm-docs]: https://github.com/norwoodj/helm-docs "Generate documentation for your Helm chart."
Expand Up @@ -38,7 +38,7 @@ spec:
- /run/spire/oidc/config/oidc-discovery-provider.conf
ports:
- containerPort: 8008
name: health
name: healthz
{{- if not .Values.insecureScheme.enabled }}
- containerPort: 443
name: https
Expand All @@ -57,13 +57,13 @@ spec:
readinessProbe:
httpGet:
path: /ready
port: health
port: healthz
initialDelaySeconds: 5
periodSeconds: 5
livenessProbe:
httpGet:
path: /live
port: health
port: healthz
initialDelaySeconds: 5
periodSeconds: 5
resources:
Expand Down
11 changes: 9 additions & 2 deletions charts/spire/charts/spire-agent/templates/daemonset.yaml
Expand Up @@ -45,6 +45,13 @@ spec:
image: {{ template "spire-agent.image" (dict "appVersion" $.Chart.AppVersion "image" .Values.image) }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
args: ["-config", "/run/spire/config/agent.conf"]
ports:
- containerPort: {{ .Values.healthChecks.port }}
name: healthz
{{- if (dig "telemetry" "prometheus" "enabled" .Values.telemetry.prometheus.enabled .Values.global) }}
- containerPort: {{ .Values.telemetry.prometheus.port }}
name: prom
{{- end }}
volumeMounts:
- name: spire-config
mountPath: /run/spire/config
Expand All @@ -67,13 +74,13 @@ spec:
livenessProbe:
httpGet:
path: /live
port: health
port: healthz
initialDelaySeconds: 15
periodSeconds: 60
readinessProbe:
httpGet:
path: /ready
port: health
port: healthz
initialDelaySeconds: 15
periodSeconds: 60
resources:
Expand Down
12 changes: 7 additions & 5 deletions charts/spire/charts/spire-server/templates/statefulset.yaml
Expand Up @@ -46,23 +46,23 @@ spec:
containerPort: 8081
protocol: TCP
- containerPort: 8080
name: health
name: healthz
{{- if (dig "telemetry" "prometheus" "enabled" .Values.telemetry.prometheus.enabled .Values.global) }}
- containerPort: 9988
name: prom
{{- end }}
livenessProbe:
httpGet:
path: /live
port: 8080
port: healthz
failureThreshold: 2
initialDelaySeconds: 15
periodSeconds: 60
timeoutSeconds: 3
readinessProbe:
httpGet:
path: /ready
port: 8080
port: healthz
initialDelaySeconds: 5
periodSeconds: 5
resources:
Expand Down Expand Up @@ -96,6 +96,8 @@ spec:
- name: https
containerPort: 9443
protocol: TCP
- containerPort: 8008
name: healthz
{{- if (dig "telemetry" "prometheus" "enabled" .Values.telemetry.prometheus.enabled .Values.global) }}
- containerPort: 8082
name: prom2
Expand All @@ -104,11 +106,11 @@ spec:
# livenessProbe:
# httpGet:
# path: /
# port: https
# port: healthz
# readinessProbe:
# httpGet:
# path: /
# port: https
# port: healthz
resources:
{{- toYaml .Values.controllerManager.resources | nindent 12 }}
volumeMounts:
Expand Down

0 comments on commit 8b0938a

Please sign in to comment.