azure - 无法连接到 AKS 服务终结点

标签 azure kubernetes azure-aks

根据我的问题 here ,我现在遇到无法连接到外部端点的问题。我的 YAML 文件在这里:

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    

现在,当我发出命令时,我可以看到外部 IP:

kubectl get service test-service --watch

但是,如果我尝试连接到该 IP,则会出现超时异常。我尝试运行仪表板,它说一切运行正常。接下来我可以做什么来诊断这个问题?

最佳答案

在本例中,通过在端口 80 上公开容器并从外部端口 6666 路由到它来解决问题。

关于azure - 无法连接到 AKS 服务终结点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54697885/

相关文章:

c# - 使用 Pulumi 从 DocumentDB-Account 检索 AccountKey 或 ConnectionString

ubuntu - 为什么 systemd 在 WSL 中被禁用?

kubernetes - Terraform kubernetes_config_map --from-env-file

apache-spark - 本地提交 Spark 作业(2.3)到 Kubernetes 时如何使用本地 Docker 镜像?

Azure AKS 'Kube-Proxy' Kubernetes 节点日志文件位置?

azure - OMS 查询语言没有不区分大小写的搜索选项,但我发现它确实支持 REGEX

powershell - 如何将非默认目录中的客户端授权给 KeyVault

.net - 使用 Redis CLI 连接到远程 Azure Redis 缓存

azure - ImagePullBackOff 错误退避 github 包 azure aks

azure - azure kubernetes 服务中的网络