I’m getting started with Kubernetes, Knative and Gloo. My goal is to deploy a simple http service to a gke cluster. I’ve managed to setup knative, gloo and deploy a healthy service there named backend
. Next step is to setup routing /api/v1
-> backend
. I’ve created a virtualservice named public-api
, now I need to add a route. According to docs, I need to run
glooctl add route \
--path-exact /api/v1 \
--dest-name ???dest-name??? \
--prefix-rewrite /
And I’m confused. I suppose this would be easier if I just installed plain gloo on plain gke. But with Knative I see four upstreams:
| mb-backend-bdtr2-4tdfq-9090 | Kubernetes | Accepted | svc name: |
| | | | backend-bdtr2-4tdfq |
| | | | svc namespace: mb |
| | | | port: 9090 |
| | | | |
| mb-backend-bdtr2-4tdfq-9091 | Kubernetes | Accepted | svc name: |
| | | | backend-bdtr2-4tdfq |
| | | | svc namespace: mb |
| | | | port: 9091 |
| | | | |
| mb-backend-bdtr2-80 | Kubernetes | Accepted | svc name: backend-bdtr2 |
| | | | svc namespace: mb |
| | | | port: 80 |
| | | | |
| mb-backend-bdtr2-zz6t9-80 | Kubernetes | Accepted | svc name: |
| | | | backend-bdtr2-zz6t9 |
| | | | svc namespace: mb |
| | | | port: 80 |
I have four questions:
- which one to use? mb-backend-bdtr2-80 or mb-backend-bdtr2-zz6t9-80
- why do I have two upstreams with port 80?
- what are these upstreams with ports 9090 and 9091?
- how can I define more descriptive names? Gloo’s system upstreams are named nicer without any postfix.