Last active
August 2, 2020 14:05
-
-
Save lalyos/d629ec671776b0f2b4949fb48ddecc81 to your computer and use it in GitHub Desktop.
ingress
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: web | |
spec: | |
rules: | |
- host: web.$NS.ing.k8z.eu | |
http: | |
paths: | |
- backend: | |
serviceName: web | |
servicePort: 80 |
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
cat > /tmp/ing.sh <<"EOF" | |
if ! [[ $URL ]] ; then | |
read -p "ingress URL: " URL | |
fi | |
export URL | |
curl -Ls https://gist.githubusercontent.com/lalyos/d629ec671776b0f2b4949fb48ddecc81/raw/ingress.yaml | envsubst \ | |
| tee /tmp/img.yaml | kubectl apply -f - | |
cat /tmp/img.yaml | |
EOF | |
source /tmp/ing.sh |
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: web | |
spec: | |
rules: | |
- host: $URL | |
http: | |
paths: | |
- backend: | |
serviceName: web | |
servicePort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment