Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hybridnet 在k8s1.26.3中使用异常 #372

Open
yangliu66666 opened this issue Mar 31, 2023 · 1 comment
Open

hybridnet 在k8s1.26.3中使用异常 #372

yangliu66666 opened this issue Mar 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@yangliu66666
Copy link

Bug Report

Type: bug report

What happened

在k8s1.26.3版本中使用hybridnet
安装步骤:
helm repo add hybridnet https://alibaba.github.io/hybridnet/
helm repo update
helm install hybridnet hybridnet/hybridnet -n kube-system --set init.cidr=10.200.0.0/16

安装后查看pod运行情况,hybridnet-daemon 一直处于1/2的状态,readiness 503检查没过

calico-typha pod中有以下信息(/calico/resources/v3/projectcalico.org/kubernetesendpointslices 访问不到这个资源):
2023-03-31 15:11:49.750 [INFO][1] watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-03-31 15:11:49.754 [INFO][1] kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2023-03-31 15:11:49.754 [INFO][1] watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-03-31 15:11:50.755 [INFO][1] watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-03-31 15:11:50.757 [INFO][1] kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2023-03-31 15:11:50.757 [INFO][1] watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-03-31 15:11:51.758 [INFO][1] watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-03-31 15:11:51.759 [INFO][1] kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2023-03-31 15:11:51.759 [INFO][1] watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-03-31 15:11:52.760 [INFO][1] watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-03-31 15:11:52.762 [INFO][1] kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2023-03-31 15:11:52.762 [INFO][1] watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource

What you expected to happen

How to reproduce it (as minimally and precisely as possible)

Anything else we need to know?

Environment

  • hybridnet version: 0.8.0 (helm version 0.6.0)
  • OS (e.g. cat /etc/os-release):
    NAME="CentOS Linux"
    VERSION="7 (Core)"
    ID="centos"
    ID_LIKE="rhel fedora"
    VERSION_ID="7"
    PRETTY_NAME="CentOS Linux 7 (Core)"
    ANSI_COLOR="0;31"
    CPE_NAME="cpe:/o:centos:centos:7"
    HOME_URL="https://www.centos.org/"
    BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

  • Kernel (e.g. uname -a): 3.10.0-1160.88.1.el7.x86_6
  • Kubernetes version: v1.26.3
  • Install tools: kubadm
  • Others:
@hhyasdf
Copy link
Collaborator

hhyasdf commented Apr 1, 2023

It seems the version of felix we use (v3.20.2) is not compatible with higher version of kubernetes than 1.24, projectcalico/calico#7032.

We will fix it and you can deploy hybridnet without networkpolicy implementation by using the --set daemon.enableFelixPolicy=false helm parameter to avoid this in a v1.26.3 Kubernetes at present.

@hhyasdf hhyasdf added the enhancement New feature or request label Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants