【问题标题】:Cannot create service: subset not found"无法创建服务:未找到子集”
【发布时间】:2020-09-02 20:47:53
【问题描述】:

我已经使用 helm chart 设置了 traefik。我有一个希望对外界可见的应用程序。但我在下面收到此错误。

kind: Ingress
apiVersion: networking.k8s.io/v1beta1
metadata:
  namespace: example
  name: example-ingress
  annotations:
    traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
spec:
  rules:
  - host: mydomain.com
    http:
      paths:
      - path: /
        backend:
          serviceName: example-app
          servicePort: 80

然后我可以运行:

kubectl get ing -n example

这给了我:

NAMESPACE   NAME              CLASS    HOSTS                       ADDRESS   PORTS   AGE
example     example-ingress   <none>   mydomain.com             80      75m

但是当我检查 traefik pod 的日志时,我收到以下错误:

level=error msg="Cannot create service: subset not found" namespace=example ingress=example-ingress serviceName=example-app providerName=kubernetes servicePort=80

有什么想法吗?

【问题讨论】:

    标签: kubernetes traefik traefik-ingress


    【解决方案1】:

    请尝试以下线程的解决方案,答案是:

    “我的入口定义中缺少 SecretName,我更新了 ro -rc3(最后更新到 v2.0),更新后错误不再存在”

    https://community.containo.us/t/kubernetesingress-cannot-create-service-subset-not-found/1516

    【讨论】:

      猜你喜欢
      • 2012-09-25
      • 1970-01-01
      • 1970-01-01
      • 2019-10-13
      • 2023-04-08
      • 1970-01-01
      • 2015-08-21
      • 2016-05-17
      • 1970-01-01
      相关资源
      最近更新 更多