apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: tekton-dashboard namespace: tekton-pipelines annotations: nginx.ingress.kubernetes.io/configuration-snippet: | rewrite ^(/[a-z1-9\-]*)(/[a-z1-9\-]*)$ https://$host:7443$1$2/ redirect; nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/rewrite-target: /$2 nginx.ingress.kubernetes.io/ssl-redirect: "true" spec: rules: - http: paths: - backend: service: name: tekton-dashboard port: number: 9097 path: /tekton/dashboard(/|$)(.*) pathType: Prefix