I’m getting this wrong. Attempted this twice.
I did:
- kubectl create service clusterip messaging-service --tcp=6379:6379 --dry-run=client -o yaml > service.yaml
- Modified selector to app=redis in the service.yaml file.
- Modified namespace=marketing in service.yaml file
- kubectl create -f service.yaml.
The autograder says that’s wrong. How?
the provided solution is:
- kubectl expose deployment redis --port=6379 --name=messaging-service --namespace=marketing
what is wrong with the alternative way i did it? Infact I think selector: redis-pod seems wrong, so isn’t my solution correct and the provided solution incorrect?? Please advise. Thanks