Comments (9)
@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.
Yours issue is same to me, I will try again and then tell you.
from kubernetes-ingress-controller.
@elboletaire That's correct.
Reference: https://github.com/Kong/kubernetes-ingress-controller/blob/master/docs/custom-resources.md#kongingress
from kubernetes-ingress-controller.
It needs pull request?
from kubernetes-ingress-controller.
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
I config the k8s Ingress like the guid and go right.
- ingress.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: proxy-from-k8s-to-mockbin
namespace: kong
annotations:
request-transformer.plugin.konghq.com: |
transform-request-to-mockbin
jwt.plugin.konghq.com: |
wechat-jwt
spec:
rules:
- host: foo.bar
http:
paths:
- path: /request
backend:
serviceName: proxy-to-mockbin
servicePort: 80
- svc.yaml
kind: Service
apiVersion: v1
metadata:
name: proxy-to-mockbin
namespace: kong
spec:
ports:
- protocol: TCP
port: 80
type: ExternalName
externalName: mockbin.org
- request-transformer.yaml
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: transform-request-to-mockbin
namespace: kong
config:
remove:
headers: host
from kubernetes-ingress-controller.
@Daiyoung thanks for reply!
But, I want to tranform "path".
For example, I create 2 api(service/route).
- 'http://localhost/user-service/v1/users' => 'http://kube-user-service/external/v1/users'
- 'http://localhost/report-service/v1/reports' => 'http://kube-report-service/external/v1/reports'
Is it possible to use request-transformer?
from kubernetes-ingress-controller.
Sorry to revive this post but I can't get this working 😕
I'm trying to configure a service using the /doc
path.
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 /{format}
where format can be, among others, pdf
.
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 /doc
I can see in my pod logs that it's trying to access /doc
:
Am I doing something wrong? BTW sorry to bother you, I'm kinda newbie in k8s....
from kubernetes-ingress-controller.
Ok, I got it... the Ingress controller and the KongIngress controller need to have the same metadata.name
. BTW if anyone can confirm me I'm not doing something evil, I'll thank them.
from kubernetes-ingress-controller.
@elboletaire That's correct.
Reference: https://github.com/Kong/kubernetes-ingress-controller/blob/master/docs/custom-resources.md#kongingress
this seems to be a broken link now
from kubernetes-ingress-controller.
this seems to be a broken link now
Here is the new one:
https://github.com/Kong/kubernetes-ingress-controller/blob/master/docs/concepts/custom-resources.md
from kubernetes-ingress-controller.
Related Issues (20)
- Definition of KongCustomEntity CRD
- Store schema of custom entity and validate KongCustomEntity against Kong gateway
- Translate KongCustomEntity CRs to Kong entities in declarative configuration
- Test Request: Kong Gateway EE version 3.7.0.0-rc.2 HOT 2
- Integration/e2e tests for usage of custom entities
- Documents for using custom entities in KIC
- Redesign interface of `configPatch` in plugin configurations
- Improve webhook to reject plugins that leads to invalid configuration (duplication) when created
- Make a new snapshot of the store only when it differs from previous snapshot
- Simplify ReferenceGrant resolution
- Test Request: Kong Gateway EE version 3.7.0.0-rc.3 HOT 2
- validating webhook is sent to non-leader pod will cause the webhook fail in gateway discovery mode
- kong open telemetry plugin header_type datadog not valid option and rejected by admission webhook HOT 6
- Test Request: Kong Gateway [OSS|EE] version 3.7.0.0-rc.4 HOT 4
- Release 3.1.5 HOT 2
- Automated test ensuring `ResolveDependencies` is implemented for all supported object types HOT 1
- konnect update failures after realm added to key-auth plugin HOT 2
- Istio e2e test cases fails when istio bumped to 1.22.0 HOT 1
- Improve changelog processing to prevent conflicts
- Feature request for BackendLBPolicy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes-ingress-controller.