helm/templates/ingress.yml (50 lines of code) (raw):

apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: nexus-webapp annotations: kubernetes.io/ingress.class: "nginx" nginx.ingress.kubernetes.io/rewrite-target: /$1 nginx.ingress.kubernetes.io/proxy-read-timeout: "360" nginx.ingress.kubernetes.io/proxy-send-timeout: "360" nginx.ingress.kubernetes.io/enable-cors: "true" nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS" nginx.ingress.kubernetes.io/cors-allow-origin: "*" spec: rules: - http: paths: {{ if .Values.rootWebpage.enabled }} - path: / pathType: ImplementationSpecific backend: service: name: root-webpage port: number: 80 {{ end }} - path: /nexus/?(.*) pathType: ImplementationSpecific backend: service: name: nexus-webapp port: number: 8083 {{ if .Values.insituAPI.enabled }} - backend: service: name: parquet-t1-parquet-spark-helm port: number: 9801 path: /(insitu.*) pathType: ImplementationSpecific {{ end }} {{ if ne .Values.onEarthProxyIP "" }} - path: /onearth/?(.*) pathType: ImplementationSpecific backend: service: name: onearth port: number: 80 {{ end }}