mirror of
https://github.com/cnrancher/kube-explorer.git
synced 2025-07-16 07:47:32 +00:00
[CI SKIP] switch to sslip.io for ingress demos
This commit is contained in:
parent
e757347def
commit
b0b81ba87d
@ -14,7 +14,7 @@ To install this mode, just run this script:
|
|||||||
|
|
||||||
```
|
```
|
||||||
kubectl apply -f ./secret.yaml
|
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 -
|
envsubst < ./ingress.yaml.tpl | kubectl apply -f -
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Note: please replace the host first
|
# 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
|
# To get your public IP: curl ipinfo.io/ip
|
||||||
|
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
@ -16,7 +16,7 @@ metadata:
|
|||||||
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - kube-explorer'
|
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - kube-explorer'
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: "${MY_XIP_IO}.xip.io"
|
- host: "${MY_IP}.sslip.io"
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
@ -13,9 +13,9 @@ htpasswd -nb username password | base64
|
|||||||
To install this mode, just run this script:
|
To install this mode, just run this script:
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl apply -f ./secret.yaml
|
kubectl create -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 -
|
envsubst < ./ingress.yaml.tpl | kubectl create -f -
|
||||||
```
|
```
|
||||||
|
|
||||||
For more infos: https://doc.traefik.io/traefik/v1.7/configuration/backends/kubernetes/
|
For more infos: https://doc.traefik.io/traefik/v1.7/configuration/backends/kubernetes/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Note: please replace the host first
|
# 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
|
# To get your public IP: curl ipinfo.io/ip
|
||||||
|
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
@ -16,7 +16,7 @@ metadata:
|
|||||||
ingress.kubernetes.io/auth-remove-header: "true"
|
ingress.kubernetes.io/auth-remove-header: "true"
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: "${MY_XIP_IO}.xip.io"
|
- host: "${MY_IP}.sslip.io"
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
Loading…
Reference in New Issue
Block a user