first commit
This commit is contained in:
21
clusters/default/apps/homepage/templates/homepage-svc.yaml
Normal file
21
clusters/default/apps/homepage/templates/homepage-svc.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: "{{ .Values.name }}-service"
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
{{- if eq .Values.service.type "LoadBalancer" }}
|
||||
type: LoadBalancer
|
||||
{{- else if eq .Values.service.type "NodePort" }}
|
||||
type: NodePort
|
||||
{{- end }}
|
||||
selector:
|
||||
app.kubernetes.io/name: {{ .Values.name }}
|
||||
ports:
|
||||
- targetPort: 3000
|
||||
{{- if eq .Values.service.type "LoadBalancer" }}
|
||||
port: {{ .Values.service.port }}
|
||||
{{- else if eq .Values.service.type "NodePort" }}
|
||||
nodePort: {{ .Values.service.nodePort }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user