Created
June 10, 2021 15:30
-
-
Save socketwench/e71d78c76a9eb85458fbfcc2e2f2d0de to your computer and use it in GitHub Desktop.
Flightdeck Cluster snippet to set up an canonical redirect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Create ingress for redirects | |
include_role: | |
name: "ten7.flightdeck_cluster" | |
vars: | |
flightdeck_cluster_kubeconfig: "{{ _run_temp_dir.path }}/kubectl.yaml" | |
flightdeck_cluster: | |
namespace: "deninet-com" | |
ingress: | |
name: "deninet-redirects" | |
permanentRedirect: "https://deninet.com$request_uri" | |
rewriteTarget: "/" | |
tlsIssuer: "lets-encrypt-ops-at-deninet-com" | |
tls: | |
- secret: "deninet-redirects-tls" | |
hosts: | |
- "www.deninet.com" | |
- "deninet.org" | |
- "www.deninet.org" | |
- "deninet.dev" | |
- "www.deninet.dev" | |
rules: | |
- host: "www.deninet.com" | |
paths: | |
- path: "/" | |
backend: "web" | |
port: "6081" | |
- host: "deninet.org" | |
paths: | |
- path: "/" | |
backend: "web" | |
port: "6081" | |
- host: "www.deninet.org" | |
paths: | |
- path: "/" | |
backend: "web" | |
port: "6081" | |
- host: "deninet.dev" | |
paths: | |
- path: "/" | |
backend: "web" | |
port: "6081" | |
- host: "www.deninet.dev" | |
paths: | |
- path: "/" | |
backend: "web" | |
port: "6081" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment