Advertisement
vitvayti

Ingress

Nov 5th, 2024
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.30 KB | None | 0 0
  1. apiVersion: networking.k8s.io/v1
  2. kind: Ingress
  3. metadata:
  4.   name: {{ .Release.Name }}-ingress
  5.   namespace: {{ .Release.Namespace }}
  6.   annotations:
  7.     cert-manager.io/cluster-issuer: "letsencrypt-prod"
  8.     nginx.ingress.kubernetes.io/proxy-set-header: |
  9.      X-Forwarded-Proto $scheme
  10.       X-Real-IP $remote_addr
  11.       X-Forwarded-For $proxy_add_x_forwarded_for
  12.     nginx.ingress.kubernetes.io/client-max-body-size: "1024m"
  13.     nginx.ingress.kubernetes.io/client-body-buffer-size: "128k"
  14.     nginx.ingress.kubernetes.io/proxy-connect-timeout: "90"
  15.     nginx.ingress.kubernetes.io/proxy-send-timeout: "90"
  16.     nginx.ingress.kubernetes.io/proxy-read-timeout: "90"
  17.     nginx.ingress.kubernetes.io/proxy-buffers-number: "32"
  18.     nginx.ingress.kubernetes.io/proxy-buffer-size: "4k"
  19.  
  20. spec:
  21.   ingressClassName: nginx
  22.   rules:
  23.     - host: {{ .Values.ingress.host | quote }}
  24.       http:
  25.         paths:
  26.          {{- range .Values.ingress.paths }}
  27.           - path: {{ .path }}
  28.             pathType: {{ .pathType }}
  29.             backend:
  30.               service:
  31.                 name: {{ .serviceName }}
  32.                 port:
  33.                   number: {{ .servicePort }}
  34.           {{- end }}
  35.   tls:
  36.     - hosts:
  37.        - {{ .Values.ingress.host }}
  38.       secretName: {{ .Values.ingress.tlsSecretName }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement