Created
March 25, 2019 18:49
-
-
Save ipedrazas/f049725e441b8519a0e39164057259b2 to your computer and use it in GitHub Desktop.
ingress rewrite
This file contains 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
echo " | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: /$1 | |
name: rewrite | |
namespace: default | |
spec: | |
rules: | |
- host: rewrite.bar.com | |
http: | |
paths: | |
- backend: | |
serviceName: http-svc | |
servicePort: 80 | |
path: /something/?(.*) | |
" | kubectl create -f - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment