Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds an ingress to redirect from Hub Preview to Hub #266

Merged
merged 1 commit into from
Jul 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Adds an ingress to redirect from Hub Preview to Hub
  - 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 Jul 14, 2021
commit f6774642c62bd2da9edcd83ca494c300cab0a1cc
25 changes: 25 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,25 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: redirect-to-tekton-hub
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
nginx.ingress.kubernetes.io/force-ssl-redirect: 'true'
dns.gardener.cloud/dnsnames: hub-preview.tekton.dev
dns.gardener.cloud/ttl: '3600'
kubernetes.io/ingress.class: "nginx"
spec:
tls:
- secretName: ui-hub-preview-tekton-dev-tls
hosts: [hub-preview.tekton.dev]
rules:
afrittoli marked this conversation as resolved.
Show resolved Hide resolved
- host: hub-preview.tekton.dev
http:
paths:
- path: /*
backend:
serviceName: ui
servicePort: 8080