ingress.yaml 520 B

12345678910111213141516171819202122232425
  1. apiVersion: networking.k8s.io/v1
  2. kind: Ingress
  3. metadata:
  4. name: $1
  5. annotations:
  6. cert-manager.io/cluster-issuer: letsencrypt
  7. nginx.ingress.kubernetes.io/whitelist-source-range: "10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"
  8. spec:
  9. ingressClassName: $2
  10. tls:
  11. - hosts:
  12. - $3
  13. secretName: $1-ingress-certs
  14. rules:
  15. - host: $3
  16. http:
  17. paths:
  18. - path: /
  19. pathType: ImplementationSpecific
  20. backend:
  21. service:
  22. name: $4
  23. port:
  24. number: 80