Skip to content

Commit

Permalink
Switch from omg.howdoi.website to sslip.io
Browse files Browse the repository at this point in the history
  • Loading branch information
p-se committed May 28, 2024
1 parent bf3bffc commit 04b7b82
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/register-downstream-clusters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euxo pipefail


public_hostname="${public_hostname-172.18.0.1.omg.howdoi.website}"
public_hostname="${public_hostname-172.18.0.1.sslip.io}"
cluster_downstream="${cluster_downstream-k3d-downstream}"
ctx=$(kubectl config current-context)

Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/setup-latest-rancher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euxo pipefail

public_hostname="${public_hostname-172.18.0.1.omg.howdoi.website}"
public_hostname="${public_hostname-172.18.0.1.sslip.io}"
cluster="${cluster-k3d-upstream}"

kubectl config use-context "$cluster"
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/setup-rancher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euxo pipefail

public_hostname="${public_hostname-172.18.0.1.omg.howdoi.website}"
public_hostname="${public_hostname-172.18.0.1.sslip.io}"
fleetns="${fleetns-cattle-fleet-system}"
upstream_ctx="${FLEET_E2E_CLUSTER-k3d-upstream}"
version="${1-v2.7.0}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rancher-upgrade-fleet-to-head.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ jobs:
-
name: Set up latest Rancher
env:
public_hostname: "172.18.0.1.omg.howdoi.website"
public_hostname: "172.18.0.1.sslip.io"
run: |
./.github/scripts/setup-latest-rancher.sh
-
name: Register Rancher's downstream clusters
env:
public_hostname: "172.18.0.1.omg.howdoi.website"
public_hostname: "172.18.0.1.sslip.io"
run: |
./.github/scripts/wait-for-loadbalancer.sh
./.github/scripts/register-downstream-clusters.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rancher-upgrade-fleet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
-
name: Set up Rancher
env:
public_hostname: "172.18.0.1.omg.howdoi.website"
public_hostname: "172.18.0.1.sslip.io"
fleetns: "cattle-fleet-system"
run: |
./.github/scripts/setup-rancher.sh "${{github.event.inputs.rancher_version}}"
Expand Down
4 changes: 2 additions & 2 deletions dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ The variable is set to a DNS record, which points to the public interface IP of
The k3d cluster is then set up with port forwardings, so that host ports are
redirected to services inside the cluster.

The default `public_hostname` is `172.18.0.1.omg.howdoi.website`, which points
The default `public_hostname` is `172.18.0.1.sslip.io`, which points
to the default Docker network gateway. That gateway address might vary for
custom networks, see for example: `docker network inspect fleet -f '{{(index .IPAM.Config0).Gateway}}'`.
Careful, several internet routers provide "DNS rebind protection" and won't return an IP for `172.18.0.1.omg.howdoi.website`, unless the `omg.howdoi.website` domain is in an allow list.
Careful, several internet routers provide "DNS rebind protection" and won't return an IP for `172.18.0.1.sslip.io`, unless the .sslip.io` domain is in an allow list.
Any magic wildcard DNS resolver will do, or you can create an A record in your own DNS zone.

The k3d cluster is set up with multiple port forwardings by the scripts: `-p '80:80@server:0' -p '443:443@server:0'`.
Expand Down
2 changes: 1 addition & 1 deletion dev/setup-fleet-downstream
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ else
fi

# docker network inspect bridge -f '{{(index .IPAM.Config 0).Gateway}}'
# public_hostname="${public_hostname-172.17.0.1.omg.howdoi.website}"
# public_hostname="${public_hostname-172.17.0.1.sslip.io}"

# works due to same network of k3d clustres and patched SAN cert
public_hostname="${public_hostname-k3d-upstream-server-0}"
Expand Down
2 changes: 1 addition & 1 deletion dev/setup-rancher-clusters
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ ! -d ./.github/scripts ]; then
exit 1
fi

public_hostname="${public_hostname-172.18.0.1.omg.howdoi.website}"
public_hostname="${public_hostname-172.18.0.1.sslip.io}"
upstream_ctx="${FLEET_E2E_CLUSTER-k3d-upstream}"
downstream_ctx="${FLEET_E2E_CLUSTER_DOWNSTREAM-k3d-downstream}"

Expand Down

0 comments on commit 04b7b82

Please sign in to comment.