Closed booboothefool closed 6 years ago
Found the solution.
https://console.bluemix.net/docs/containers/cs_ingress.html#ingress
Step 3: Creating Ingress resource
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: myingressresource
spec:
rules:
- host: <domain>
http:
paths:
- path: /<app1_path>
backend:
serviceName: <app1_service>
servicePort: 80
- path: /<app2_path>
backend:
serviceName: <app2_service>
servicePort: 80
^ won't work. It needs:
annotations:
ingress.bluemix.net/rewrite-path: "serviceName=app1-service rewrite=/"
path: /<app1_path>/
https://github.com/IBM-Bluemix-Docs/containers/blob/master/cs_annotations.md
I am trying to do something similar to:
But this setup gives me 404s:
Some tutorials will suggest I need to add an annotation:
But how do I add this using IBM Cloud Kubernetes Ingress?
ingress.bluemix.net/rewrite-path
does not appear to do the same thing asingress.kubernetes.io/rewrite-target
.Also, do I need to manually deploy an Ingress Controller or does IBM Cloud Kubernetes do it for me? The Kubernetes docs https://kubernetes.io/docs/concepts/services-networking/ingress/ mention :
But the IBM Kubernetes docs https://console.bluemix.net/docs/containers/cs_ingress.html#ingress have no mention of this or how to create the Ingress Controller.