博客
关于我
以聊天的形式解决traefik2.1.X的一个问题
阅读量:472 次
发布时间:2019-03-06

本文共 2074 字,大约阅读时间需要 6 分钟。

海口-老男人 17:24:48

大哥,这个是啥报错呀

海口-老男人 17:27:04

E0413 09:23:13.134144       1 reflector.go:153] pkg/mod/k8s.io/client-go@v0.17.3/tools/cache/reflector.go:105: Failed to list *v1alpha1.IngressRouteUDP: ingressrouteudps.traefik.containo.us is forbidden: User "system:serviceaccount:kube-system:traefik-ingress-controller" cannot list resource "ingressrouteudps" in API group "traefik.containo.us" at the cluster scope

海口-老男人 17:35:42

部署的时候没有任何问题。。

海口-老男人 17:36:00

pod 也是 running状态

贯通golang之前不改名 17:36:09

海口-老男人 17:36:39
然后我发现访问不到 dash

海口-老男人 17:36:47

describe 也没报错

海口-老男人 17:36:51

就 log 提示了这个

海口-老男人 17:37:19

贯通golang之前不改名 17:46:06
权限呢

贯通golang之前不改名 17:48:23

权限的问题 没有给角色添加这个资源

贯通golang之前不改名 17:50:21

还在不在???

贯通golang之前不改名 17:50:45

让我瞅瞅你的rbac

apiVersion: v1kind: ServiceAccountmetadata:  namespace: kube-system  name: traefik-ingress-controller---kind: ClusterRoleapiVersion: rbac.authorization.k8s.io/v1beta1metadata:  name: traefik-ingress-controllerrules:  - apiGroups: [""]    resources: ["services","endpoints","secrets"]    verbs: ["get","list","watch"]  - apiGroups: ["extensions"]    resources: ["ingresses"]    verbs: ["get","list","watch"]  - apiGroups: ["extensions"]    resources: ["ingresses/status"]    verbs: ["update"]  - apiGroups: ["traefik.containo.us"]    resources: ["middlewares"]    verbs: ["get","list","watch"]  - apiGroups: ["traefik.containo.us"]    resources: ["ingressroutes"]    verbs: ["get","list","watch"]  - apiGroups: ["traefik.containo.us"]    resources: ["ingressroutetcps"]    verbs: ["get","list","watch"]  - apiGroups: ["traefik.containo.us"]    resources: ["tlsoptions"]    verbs: ["get","list","watch"]---kind: ClusterRoleBindingapiVersion: rbac.authorization.k8s.io/v1beta1metadata:  name: traefik-ingress-controllerroleRef:  apiGroup: rbac.authorization.k8s.io  kind: ClusterRole  name: traefik-ingress-controllersubjects:  - kind: ServiceAccount    name: traefik-ingress-controller    namespace: kube-system

贯通golang之前不改名 17:53:27

贯通golang之前不改名 17:53:48
贯通golang之前不改名 17:53:58
少个udp的 rule

很是不解 我用的版本是1.17.2 配置没问题,朋友用的是1.17.4就存在问题,这个有待追究。

转载地址:http://yxgbz.baihongyu.com/

你可能感兴趣的文章
Netty 异步任务调度与异步线程池
查看>>
Netty 的 Handler 链调用机制
查看>>
Netty 编解码器和 Handler 调用机制
查看>>
Netty 编解码器详解
查看>>
Netty 解决TCP粘包/半包使用
查看>>
Netty 调用,效率这么低还用啥?
查看>>
Netty 高性能架构设计
查看>>
Netty+Protostuff实现单机压测秒级接收35万个对象实践经验分享
查看>>
Netty+SpringBoot+FastDFS+Html5实现聊天App详解(一)
查看>>
netty--helloword程序
查看>>
netty2---服务端和客户端
查看>>
【Flink】Flink 2023 Flink易用性和稳定性在Shopee的优化-视频笔记
查看>>
Netty5.x 和3.x、4.x的区别及注意事项(官方翻译)
查看>>
netty——bytebuf的创建、内存分配与池化、组成、扩容规则、写入读取、内存回收、零拷贝
查看>>
netty——Channl的常用方法、ChannelFuture、CloseFuture
查看>>
netty——EventLoop概念、处理普通任务定时任务、处理io事件、EventLoopGroup
查看>>
netty——Future和Promise的使用 线程间的通信
查看>>
netty——Handler和pipeline
查看>>
Vue输出HTML
查看>>
netty——黏包半包的解决方案、滑动窗口的概念
查看>>