Not able to connect to an AKS Service Endpoint

2/14/2019

Following on from my question here, I now have the issue that I am unable to connect to the external endpoint. My YAML file is here:

apiVersion: v1
kind: Pod
spec: 
  containers:
    - name: dockertest20190205080020
      image: dockertest20190205080020.azurecr.io/dockertest
      ports:
      - containerPort: 443
metadata: 
  name: my-test
  labels: 
    app: app-label
---
kind: Service
apiVersion: v1
metadata:
  name: test-service
spec:
  selector:
    app: app-label
  type: LoadBalancer
  ports:
  - protocol: TCP
    port: 443    

I can now see an external IP when I issue the command:

kubectl get service test-service --watch

However, if I try to connect to that IP I get a timeout exception. I've tried running the dashboard, and it says everything is running fine. What I can do next to diagnose this issue?

--
azure
azure-aks
azure-kubernetes
kubernetes

1 Answer

2/20/2019

in this case, the problem was solved by exposing container on port 80 and routing from external port 6666 to it.

-- 4c74356b41
Source: StackOverflow