请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

nginx-ingress-controller运行正常,日志异常

[root@node-1 ~]# kubectl get pod -o wide -n ingress-nginx
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
default-http-backend-d8d4fcd79-pq4m8 1/1 Running 0 39m 10.200.139.108 node-3
nginx-ingress-controller-7c55698fb9-bt26x 1/1 Running 0 39m 192.168.216.103 node-3

[root@node-1 ~]# kubectl logs nginx-ingress-controller-7c55698fb9-bt26x -n ingress-nginx

stamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,}, err services “ingress-nginx” not found
W0513 15:54:37.174660 9 queue.go:130] requeuing &ObjectMeta{Name:sync status,GenerateName:,Namespace:,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,}, err services “ingress-nginx” not found
W0513 15:54:37.270624 9 queue.go:130] requeuing &ObjectMeta{Name:sync status,GenerateName:,Namespace:,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,}, err services “ingress-nginx” not found
W0513 15:54:37.372145 9 queue.go:130] requeuing &ObjectMeta{Name:sync status,GenerateName:,Namespace:,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,}, err services “ingress-nginx” not found
W0513 15:54:37.472849 9 queue.go:130] requeuing &ObjectMeta{Name:sync status,GenerateName:,Namespace:,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,}, err services “ingress-nginx” not found
W0513 15:54:37.570452 9 queue.go:130] requeuing &ObjectMeta{Name:sync status,GenerateName:,Namespace:,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,}, err services “ingress-nginx” not found

刷大量一样的错误

正在回答 回答被采纳积分+3

1回答

刘果国 2022-05-14 09:46:52

关注:err services “ingress-nginx” not found,创建一个svc

0 回复 有任何疑惑可以回复我~
  • 提问者 烟火的光芒 #1
    好了,手动创建了ingress-nginx的svc。但我有个疑问,视屏中并没有看到创建这个svc,这个svc是必要的吗?我是不是把mandatory.yaml中的   - --publish-service=$(POD_NAMESPACE)/ingress-nginx 注释掉也可以?
    回复 有任何疑惑可以回复我~ 2022-05-14 18:46:03
  • 刘果国 回复 提问者 烟火的光芒 #2
    可以的,svc必要性与否在于服务发现的方式,依赖svc就是必要的
    回复 有任何疑惑可以回复我~ 2022-05-15 10:29:55
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信