This repository was archived by the owner on May 17, 2024. It is now read-only.
File tree 3 files changed +18
-0
lines changed
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 25
25
image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
26
26
imagePullPolicy : {{ .Values.image.pullPolicy }}
27
27
ports :
28
+ {{- if and .Values.metrics.enabled }}
29
+ - containerPort : {{ .Values.metrics.port }}
30
+ {{ end }}
28
31
- containerPort : 443
29
32
- containerPort : 8080
30
33
readinessProbe :
74
77
{{- range $key, $value := .Values.extraArgs -}}
75
78
- " --{{ $key }}={{ $value -}}"
76
79
{{ end }}
80
+ {{- if and .Values.metrics.enabled }}
81
+ - " --metrics-serving-address={{ .Values.metrics.address }}:{{ .Values.metrics.port }}"
82
+ {{ end }}
77
83
resources :
78
84
{{- toYaml .Values.resources | nindent 12 }}
79
85
env :
Original file line number Diff line number Diff line change @@ -96,6 +96,13 @@ podDisruptionBudget:
96
96
enabled : false
97
97
minAvailable : 1
98
98
99
+ # Set the Prometheus metrics listen address. Setting an empty address string
100
+ # will disable the metrics server.
101
+ metrics :
102
+ enabled : true
103
+ port : 80
104
+ address : " 0.0.0.0"
105
+
99
106
resources : {}
100
107
# We usually recommend not to specify default resources and to leave this as a conscious
101
108
# choice for the user. This also increases chances charts run on environments with little
Original file line number Diff line number Diff line change @@ -26,13 +26,18 @@ spec:
26
26
metadata :
27
27
labels :
28
28
app : kube-oidc-proxy
29
+ annotations :
30
+ prometheus.io/path : /metrics
31
+ prometheus.io/port : " 80"
32
+ prometheus.io/scrape : " true"
29
33
spec :
30
34
serviceAccountName : kube-oidc-proxy
31
35
containers :
32
36
- image : quay.io/jetstack/kube-oidc-proxy:v0.3.0
33
37
ports :
34
38
- containerPort : 443
35
39
- containerPort : 8080
40
+ - containerPort : 80
36
41
readinessProbe :
37
42
httpGet :
38
43
path : /ready
You can’t perform that action at this time.
0 commit comments