[CI SKIP] switch to sslip.io for ingress demos

This commit is contained in:
niusmallnan 2023-04-10 16:20:43 +08:00
parent e757347def
commit b0b81ba87d
4 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@ To install this mode, just run this script:
```
kubectl apply -f ./secret.yaml
export MY_XIP_IO=$(curl -sL ipinfo.io/ip)
export MY_IP=$(curl -sL ipinfo.io/ip)
envsubst < ./ingress.yaml.tpl | kubectl apply -f -
```

View File

@ -1,5 +1,5 @@
# Note: please replace the host first
# To use xip.io: http://xip.io/
# To use sslip.io: https://sslip.io/
# To get your public IP: curl ipinfo.io/ip
apiVersion: networking.k8s.io/v1beta1
@ -16,7 +16,7 @@ metadata:
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - kube-explorer'
spec:
rules:
- host: "${MY_XIP_IO}.xip.io"
- host: "${MY_IP}.sslip.io"
http:
paths:
- path: /

View File

@ -13,9 +13,9 @@ htpasswd -nb username password | base64
To install this mode, just run this script:
```
kubectl apply -f ./secret.yaml
export MY_XIP_IO=$(curl -sL ipinfo.io/ip)
envsubst < ./ingress.yaml.tpl | kubectl apply -f -
kubectl create -f ./secret.yaml
export MY_IP=$(curl -sL ipinfo.io/ip)
envsubst < ./ingress.yaml.tpl | kubectl create -f -
```
For more infos: https://doc.traefik.io/traefik/v1.7/configuration/backends/kubernetes/

View File

@ -1,5 +1,5 @@
# Note: please replace the host first
# To use xip.io: http://xip.io/
# To use sslip.io: https://sslip.io/
# To get your public IP: curl ipinfo.io/ip
apiVersion: networking.k8s.io/v1beta1
@ -16,7 +16,7 @@ metadata:
ingress.kubernetes.io/auth-remove-header: "true"
spec:
rules:
- host: "${MY_XIP_IO}.xip.io"
- host: "${MY_IP}.sslip.io"
http:
paths:
- path: /