template/ingress.yaml
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: {{ .Values.ingress.name }} annotations: {{ toYaml .Values.ingress.annotations | indent 4 }} spec: ingressClassName: {{ .Values.ingress.ingressclass }} rules: {{ toYaml .Values.ingress.rules | indent 4 }}
values.yaml
ingress: ingressclass: nginx name: ncyd-ingress annotations: nginx.ingress.kubernetes.io/rewrite-target: /$2 rules: - host: "localhost" http: paths: - path: /ncyd2/mockserver(/|$)(.*) pathType: Prefix backend: service: name: mock-server port: number: 1080 - host: "localhost" http: paths: - path: /ncyd2/kubernetes(/|$)(.*) pathType: Prefix backend: service: name: kubernetes port: number: 443 - host: "localhost" http: paths: - path: /ncyd2/jira(/|$)(.*) pathType: Prefix backend: service: name: jira-service port: number: 8080