-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I configure service/path? #39
Comments
You can try to add an annotation named "request-transformer.plugin.konghq.com" to the Ingress. see more info in https://github.com/Kong/kubernetes-ingress-controller/blob/master/deploy/minikube.md
|
@Daiyoung thanks for reply! But, I want to tranform "path". For example, I create 2 api(service/route).
Is it possible to use request-transformer? |
@subicura kubernetes-ingress-controller for kong is released just a few days, the document is not very perfect. I also get some problems,like I can't create the jwt credential bound one consumer. |
Sorry to revive this post but I can't get this working 😕 I'm trying to configure a service using the apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: html2doc-ingress
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- http:
paths:
- path: /doc
backend:
serviceName: html2doc-svc
servicePort: 80 My service receives calls at apiVersion: configuration.konghq.com/v1
kind: KongIngress
metadata:
name: html2doc-kongingress
proxy:
path: /
route:
strip_path: true Even after adding the above KongIngress controller nothing seems to change. When I call Am I doing something wrong? BTW sorry to bother you, I'm kinda newbie in k8s.... |
Ok, I got it... the Ingress controller and the KongIngress controller need to have the same |
this seems to be a broken link now |
Here is the new one: |
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Feature request
Kong Ingress controller version:
0.0.3
Kubernetes version (use
kubectl version
):1.9.6
Environment:
Docker for mac
What happened:
I can't configure service/path.
I want to "http://localhost/sample" to "http://sample-http/external".
What you expected to happen:
Use Ingress or KongIngress .
Ingress (ingress.kubernetes.io/rewrite-target is not working)
KongIngress (proxy/path is not working)
The text was updated successfully, but these errors were encountered: