You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I successfully configured Kong with knative. KongPlugin's works but I can't configure a KongIngress resource according to the http-https redirect tutorial.
I annotate my Knative service to extend the Kong Ingress.
apiVersion: serving.knative.dev/v1alpha1kind: Servicemetadata:
name: helloworld-go # The name of our route; appears in the URL to access the appnamespace: default # The namespace we're working in; also appears in the URL to access the appspec:
traffic:
- latestRevision: truepercent: 100# All traffic goes to this revisiontemplate:
metadata:
annotations:
konghq.com/plugins: add-response-header, harry-rate-limitkonghq.com/override: https-onlyspec:
timeoutSeconds: 30containerConcurrency: 15containers:
- image: gcr.io/knative-samples/helloworld-goenv:
- name: TARGETvalue: Go Sample v1
This is expected. We added support for plugins for knative services but didn't add support for overrides.
We will add support for https redirects and other route-level properties.
PRs welcome if you or anyone else wants to get to it before the maintainers can.
Summary
I successfully configured Kong with knative. KongPlugin's works but I can't configure a KongIngress resource according to the http-https redirect tutorial.
Kong Ingress controller version
0.9.1
Kubernetes version
paste
kubectl version
outputWhat happened
I annotate my Knative service to extend the Kong Ingress.
Because patching the service is not possible (knative configurations are immutable) I have to do it with the knative cli.
The command updated the configuration and created a new revision of my service.
Expected behavior
I'd expect that Kong identifies my service and apply the KongIngress to Kong's Ingress to redirect all HTTP requests with 302 to https.
Installation procedure
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.15.0/serving-crds.yaml kubectl apply --filename https://github.com/knative/serving/releases/download/v0.15.0/serving-core.yaml kubectl apply --filename https://raw.githubusercontent.com/Kong/kubernetes-ingress-controller/0.9.1/deploy/single/all-in-one-dbless.yaml kubectl patch configmap/config-network \ --namespace knative-serving \ --type merge \ --patch '{"data":{"ingress.class":"kong"}}' kubectl --namespace kong get service kong-proxy
The text was updated successfully, but these errors were encountered: