Can I run multiple services on port 80 in Kubernetes in the Google Container Engine? Each service has a dedicated external IP address, so theoretically a router should be able to route each service based on its IP address.
So far I have created containers for frontend-1 and frontend-2 in the Container Engine. I tried to create separate services for them running on port 80 with unique external IP addresses, but this did not work. Is there any other way to do this in Kubernetes without using a dedicated routing service?
service 1.yaml:
id: service-1 port: 80 containerPort: 8080 selector: name: frontend-1 createExternalLoadBalancer: true
2.yaml service:
id: service-2 port: 80 containerPort: 8081 selector: name: frontend-2 createExternalLoadBalancer: true
google-container-engine kubernetes
Caleb
source share