Skip to content

Commit 79a949a

Browse files
authored
Helm Chart option to deploy service (#237)
1 parent 5717ea8 commit 79a949a

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{- if .Values.service.enable }}
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: boot-http
6+
namespace: {{ .Release.Namespace }}
7+
labels:
8+
{{- include "chart.labels" . | nindent 4 }}
9+
spec:
10+
ports:
11+
- name: boot
12+
port: {{ .Values.service.port }}
13+
protocol: TCP
14+
targetPort: {{ .Values.service.port }}
15+
selector:
16+
app.kubernetes.io/instance: boot-operator
17+
type: ClusterIP
18+
{{- end }}

dist/chart/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ controllerManager:
4545
- key: node-role.kubernetes.io/control-plane
4646
effect: NoSchedule
4747

48+
service:
49+
enable: false
50+
port: 8082
51+
4852
# [RBAC]: To enable RBAC (Permissions) configurations
4953
rbac:
5054
enable: true

0 commit comments

Comments
 (0)