mirror of
https://github.com/eliasstepanik/caddy-ingess.git
synced 2026-01-11 12:38:27 +00:00
23 lines
444 B
YAML
23 lines
444 B
YAML
{{- if .Values.minikube }}
|
|
# we don't need a loadbalancer for local deployment purposes
|
|
{{ else }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ .Values.name }}
|
|
labels:
|
|
app: {{ .Values.name }}
|
|
spec:
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
protocol: TCP
|
|
targetPort: http
|
|
- name: https
|
|
port: 443
|
|
protocol: TCP
|
|
targetPort: https
|
|
selector:
|
|
app: {{ .Values.name }}
|
|
type: "LoadBalancer"
|
|
{{- end }} |