kind: Service
apiVersion: v1
metadata:
name: google
spec:
type: ExternalName
externalName: www.google.com
ports:
name: https
protocol: TCP
port: 443
When I am trying to hit this ExternalName Service I am getting below Error
404 Http Response
Whereas, if I hit the domain url (google.com) directly from the pod getting 200 OK response.
O/p:
kubectl exec curl -n mock-test – curl -sSv www.google.com --insecure
Also I am able to achieve the example mentioned below: