This repository was archived by the owner on May 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 2525 image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
2626 imagePullPolicy : {{ .Values.image.pullPolicy }}
2727 ports :
28+ {{- if and .Values.metrics.enabled }}
29+ - containerPort : {{ .Values.metrics.port }}
30+ {{ end }}
2831 - containerPort : 443
2932 - containerPort : 8080
3033 readinessProbe :
7477 {{- range $key, $value := .Values.extraArgs -}}
7578 - " --{{ $key }}={{ $value -}}"
7679 {{ end }}
80+ {{- if and .Values.metrics.enabled }}
81+ - " --metrics-serving-address={{ .Values.metrics.address }}:{{ .Values.metrics.port }}"
82+ {{ end }}
7783 resources :
7884 {{- toYaml .Values.resources | nindent 12 }}
7985 env :
Original file line number Diff line number Diff line change @@ -96,6 +96,13 @@ podDisruptionBudget:
9696 enabled : false
9797 minAvailable : 1
9898
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+
99106resources : {}
100107 # We usually recommend not to specify default resources and to leave this as a conscious
101108 # 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:
2626 metadata :
2727 labels :
2828 app : kube-oidc-proxy
29+ annotations :
30+ prometheus.io/path : /metrics
31+ prometheus.io/port : " 80"
32+ prometheus.io/scrape : " true"
2933 spec :
3034 serviceAccountName : kube-oidc-proxy
3135 containers :
3236 - image : quay.io/jetstack/kube-oidc-proxy:v0.3.0
3337 ports :
3438 - containerPort : 443
3539 - containerPort : 8080
40+ - containerPort : 80
3641 readinessProbe :
3742 httpGet :
3843 path : /ready
You can’t perform that action at this time.
0 commit comments