I have one app deployed in pod A and another app in pod B
apiVersion: v1
kind: Service
metadata:
name: product
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
app: product-api
apiVersion: v1
kind: Service
metadata:
name: webbff
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
app: webbff-api
In webbff service i have written the url http://product to access the product service. But i am unable to access it