diff --git a/deploy/kubectl/nginx-auth/README.md b/deploy/kubectl/nginx-auth/README.md index e84a89e..a2c585c 100644 --- a/deploy/kubectl/nginx-auth/README.md +++ b/deploy/kubectl/nginx-auth/README.md @@ -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 - ``` diff --git a/deploy/kubectl/nginx-auth/ingress.yaml.tpl b/deploy/kubectl/nginx-auth/ingress.yaml.tpl index dad178b..e36e968 100644 --- a/deploy/kubectl/nginx-auth/ingress.yaml.tpl +++ b/deploy/kubectl/nginx-auth/ingress.yaml.tpl @@ -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: / diff --git a/deploy/kubectl/traefik-auth/README.md b/deploy/kubectl/traefik-auth/README.md index 480bd54..eadd4d0 100644 --- a/deploy/kubectl/traefik-auth/README.md +++ b/deploy/kubectl/traefik-auth/README.md @@ -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/ diff --git a/deploy/kubectl/traefik-auth/ingress.yaml.tpl b/deploy/kubectl/traefik-auth/ingress.yaml.tpl index 35d77b3..d18f7d8 100644 --- a/deploy/kubectl/traefik-auth/ingress.yaml.tpl +++ b/deploy/kubectl/traefik-auth/ingress.yaml.tpl @@ -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: /