Skip to content

Commit

Permalink
Adds an ingress to redirect from Hub Preview to Hub
Browse files Browse the repository at this point in the history
  - This patch adds an annotation which redirects from Hub Preview to Hub as
    `nginx.ingress.kubernetes.io/permanent-redirect: https://hub.tekton.dev`

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
  • Loading branch information
PuneetPunamiya committed May 21, 2021
1 parent c032b76 commit f124ef6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions config/04-kubernetes/42-hub-preview-redirect-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ui
namespace: tekton-hub-preview
annotations:
acme.cert-manager.io/http01-edit-in-place: 'true'
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/permanent-redirect: https://hub.tekton.dev
spec:
tls:
- secretName: ui-hub-preview-tekton-dev-tls
hosts: [hub-preview.tekton.dev]
rules:
- http:
paths:
- path: /*
backend:
serviceName: ui
servicePort: 8080

0 comments on commit f124ef6

Please sign in to comment.