Sha256: 251808659b020d9560025d8e7458c2ac94e1464015e171469cc04f6885b22218

Contents?: true

Size: 1.36 KB

Versions: 5

Compression:

Stored size: 1.36 KB

Contents

{{- if .Values.web.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: web
  labels:
    app.kubernetes.io/name: web
    app.kubernetes.io/component: ingress
    {{- include "waylon.commonLabels" . | nindent 4 }}
    {{- with .Values.web.ingress.labels }}
      {{- toYaml . | nindent 4 }}
    {{- end }}
  annotations:
    kubernetes.io/ingress.class: {{ .Values.web.ingress.class }}
    nginx.ingress.kubernetes.io/preserve-host: "true"
    {{- if .Values.web.ingress.tls.enabled }}
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
    {{- if eq .Values.web.ingress.tls.issuer "letsencrypt" }}
    {{- if eq .Values.web.ingress.tls.issuerClass "ClusterIssuer" }}
    cert-manager.io/cluster-issuer: letsencrypt
    {{- else }}
    cert-manager.io/issuer: letsencrypt
    {{- end }}
    cert-manager.io/acme-challenge-type: http01
    {{- end }}
    {{- end }}
    {{- with .Values.web.ingress.annotations }}
      {{- toYaml . | nindent 4 }}
    {{- end }}
spec:
  rules:
  - host: {{ .Values.web.ingress.hostname }}
    http:
      paths:
      - pathType: Prefix
        path: /
        backend:
          service:
            name: waylon
            port:
              name: waylon
  {{- if .Values.web.ingress.tls.enabled }}
  tls:
  - hosts:
    - {{ .Values.web.ingress.hostname }}
    secretName: web-ingress-tls
  {{- end }}
{{- end -}}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
waylon-0.3.0 examples/deploying/helm/waylon/templates/web-ingress.yaml
waylon-0.2.6 examples/deploying/helm/waylon/templates/web-ingress.yaml
waylon-0.2.5 examples/deploying/helm/waylon/templates/web-ingress.yaml
waylon-0.2.4 examples/deploying/helm/waylon/templates/web-ingress.yaml
waylon-0.2.2 examples/deploying/helm/waylon/templates/web-ingress.yaml