I want to deploy an app on K8s cluster using the deployment, service object. I want to create two service objects and map it to the deployment (using labels and selectors). I want to know if this possible?
deployment:
name: test-deploy
labels: test
service 1:
name: test-service-1
selectors: test
service 2:
name: test-service-2
selectors: test
I'm confused on how K8s resolves this conflict? Can I try this in order to create two services?
deployment:
name: test-deploy
labels:
- test
- svc1
- svc2
service 1:
name: test-service-1
selectors:
- test
- svc1
service 2:
name: test-service-2
selectors:
- test
- svc2