ingress.yaml 857 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  namespace: "{{ .Values.k8sNamespace }}"
  name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-ingress"
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
    nginx.ingress.kubernetes.io/rewrite-target: /
  labels:
    app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-app"
spec:
  tls:
    - hosts:
        - "{{ .Values.k8sHost }}"
      secretName: "{{ .Values.k8sHost }}-tls"
  rules:
    - host: "{{ .Values.k8sHost }}"
      http:
        paths:
          - path: /
            backend:
              serviceName: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-service"
              servicePort: {{ .Values.k8sPort }}