Hello,
I have launched an container voting app and then in order to access this app on port 80, I have launched service definition yml file with type as cluster IP, both pod and service pods are up and running but I couldn’t able to access the voting app… Does CKA lab support to open the ports with service files.? here is my service yaml file, can someone look into it and let me know if I am doing wrong here.
Here is my Service yml file.
apiVersion: v1
kind: Service
metadata:
name: voting-service
labels:
name: voting-service
app: demo-voting-app
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
selector:
name: voting-app-pod
app: demo-voting-app