Skip to content

Instantly share code, notes, and snippets.

@radu-matei
Created February 21, 2018 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radu-matei/772e2f3e5fb0776d5732d1448468e7f9 to your computer and use it in GitHub Desktop.
Save radu-matei/772e2f3e5fb0776d5732d1448468e7f9 to your computer and use it in GitHub Desktop.
{{- if .Values.ingress.enabled -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ template "fullname" . }}
annotations:
kubernetes.io/tls-acme: "true"
kubernetes.io/ingress.class: "nginx"
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
spec:
tls:
- hosts:
- {{ .Release.Name }}.{{ .Values.basedomain }}
secretName: {{ .Release.Name }}
rules:
- host: {{ .Release.Name }}.{{ .Values.basedomain }}
http:
paths:
- path: /
backend:
serviceName: {{ template "fullname" . }}
servicePort: {{ .Values.service.externalPort }}
{{- end -}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment