File tree 4 files changed +25
-1
lines changed
charts/lws/templates/manager
4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 48
48
- name : webhook-server
49
49
containerPort : {{ .Values.service.port }}
50
50
protocol : TCP
51
+ {{- if .Values.enablePrometheus }}
52
+ - containerPort : 8443
53
+ name : metrics
54
+ protocol : TCP
55
+ {{- end }}
51
56
livenessProbe :
52
57
httpGet :
53
58
path : /healthz
Original file line number Diff line number Diff line change
1
+ {{- if .Values.enablePrometheus }}
1
2
apiVersion : v1
2
3
kind : Service
3
4
metadata :
14
15
protocol : TCP
15
16
targetPort : 8443
16
17
selector :
17
- control-plane : controller-manager
18
+ control-plane : controller-manager
19
+ {{- end }}
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ patches:
36
36
# Other configurations
37
37
- path : manager_config_patch.yaml
38
38
39
+ - path : manager_metrics_patch.yaml
40
+
39
41
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.
40
42
# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.
41
43
# 'CERTMANAGER' needs to be enabled to use ca injection
Original file line number Diff line number Diff line change
1
+ # This patch exposes 8443 port used by metrics service
2
+ apiVersion : apps/v1
3
+ kind : Deployment
4
+ metadata :
5
+ name : controller-manager
6
+ namespace : system
7
+ spec :
8
+ template :
9
+ spec :
10
+ containers :
11
+ - name : manager
12
+ ports :
13
+ - containerPort : 8443
14
+ name : metrics
15
+ protocol : TCP
You can’t perform that action at this time.
0 commit comments