Create Site Ingress

Create a file named ingress.yaml with following content.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ${INGRESS_NAME}
  # Optional Labels
  labels:
    app.kubernetes.io/instance: ${FRAPPE_SERVICE}
  annotations:
    # required for cert-manager letsencrypt
    cert-manager.io/cluster-issuer: letsencrypt-prod
    # other annotations as needed, e.g timestamp
    kubernetes.io/ingress.class: nginx
    kubernetes.io/tls-acme: "true"
spec:
  rules:
  - host: ${SITE_NAME}
    http:
      paths:
      - backend:
          serviceName: ${FRAPPE_SERVICE}
          servicePort: 80
        path: /
  tls:
  - hosts:
    - ${SITE_NAME}
    secretName: ${TLS_SECRET_NAME}

Change the following properties:

Create the resource using:

$ kubectl create -n <namespace> -f ingress.yaml