mirror of
https://github.com/eliasstepanik/caddy-ingess.git
synced 2026-01-21 01:08:26 +00:00
Provide ability to configure caddy ingress controller * Update helm charts * Default install into caddy-sytem namespace * Allow inter namespace service discovery
24 lines
482 B
YAML
24 lines
482 B
YAML
{{- if .Values.minikube }}
|
|
# we don't need a loadbalancer for local deployment purposes
|
|
{{ else }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ .Values.name }}
|
|
namespace: {{ .Release.Namespace }}
|
|
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 }} |