File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: A Helm chart for deploying OpenVPN in Kubernetes
44
55type : application
66
7- version : 0.4 .0
7+ version : 0.5 .0
88
99appVersion : " 0.3.0"
1010
Original file line number Diff line number Diff line change 1+ {{- if (and .Values.metrics.enabled .Values.metrics.service.enabled) }}
2+ apiVersion : v1
3+ kind : Service
4+ metadata :
5+ name : {{ include "openvpn.fullname" . }}-metrics
6+ labels :
7+ {{- include "openvpn.labels" . | nindent 4 }}
8+ {{- with .Values.metrics.service.annotations }}
9+ annotations : {{- toYaml . | nindent 4 }}
10+ {{- end }}
11+ spec :
12+ type : {{ .Values.metrics.service.type }}
13+ ports :
14+ - port : {{ .Values.metrics.service.port }}
15+ targetPort : metrics
16+ {{- with .Values.metrics.service.nodePort }}
17+ nodePort : {{ . }}
18+ {{- end }}
19+ protocol : {{ .Values.metrics.service.protocol }}
20+ name : metrics
21+ selector :
22+ {{- include "openvpn.selectorLabels" . | nindent 4 }}
23+ {{- with .Values.metrics.service.loadBalancerClass }}
24+ loadBalancerClass : {{ . }}
25+ {{- end }}
26+ {{- end }}
Original file line number Diff line number Diff line change @@ -130,3 +130,11 @@ metrics:
130130 port : 9176
131131 statusFile : /var/tmp/openvpn/openvpn-status.log
132132 resources : {}
133+ service :
134+ enabled : false
135+ type : ClusterIP
136+ port : 9176
137+ # nodePort:
138+ protocol : TCP
139+ annotations : {}
140+ # loadBalancerClass:
You can’t perform that action at this time.
0 commit comments