k8s1.20迁移兼容性问题处理


k8s1.20迁移相关注意事宜

nfs-client-provisioner

  • 报错
E0519 08:58:01.086496       1 controller.go:1004] provision "default/test-claim" class "nfs-client-sc": unexpected error getting claim reference: selfLink was empty, can't make reference
  • 解决
修改apiserver,添加
- --feature-gates=RemoveSelfLink=false

ingress

https://kubernetes.io/docs/concepts/services-networking/ingress/#the-ingress-resource

修改地方
apiVersion: networking.k8s.io/v1

paths:
      - backend:
          service:
            name: stjk-channel-web-svc
            port: 
              number: 80
        path: /
        pathType: Prefix

1,修改apiVersion 2,serverName 3, serverPort 4, pathType