fix templating and values
This commit is contained in:
28
helm/templates/service.yaml
Normal file
28
helm/templates/service.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
{{ if .Values.glances }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-glances
|
||||
spec:
|
||||
selector:
|
||||
app: {{ .Release.Name }}
|
||||
ports:
|
||||
- port: 61208
|
||||
targetPort: 61208
|
||||
{{ end }}
|
||||
---
|
||||
{{ if .Values.iperf }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-iperf
|
||||
spec:
|
||||
selector:
|
||||
app: {{ .Release.Name }}
|
||||
ports:
|
||||
- port: 5201
|
||||
targetPort: 5201
|
||||
externalIPs:
|
||||
- 6.0.22.1
|
||||
type: LoadBalancer
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user