1

long story short, according to this I need to disable the RemoveSelfLink feature from the API server.

I was therefore trying to do so via Kubeadm's ClusterConfiguration with something like the following:

kind: ClusterConfiguration
apiVersion: kubeadm.k8s.io/v1beta2
clusterName: ecobnb-staging
controlPlaneEndpoint: 49.12.22.67
networking:
        podSubnet: 10.244.0.0/16
apiServer:
    extraArgs:
        feature-gates: "removeSelfLink=false"

This does not seem to work as kubeadm times out. This might be because, in the K8s docs, the RemoveSelfLink was removed in v1.19.

Any idea how to work around this? Thanks a lot!

Edit : Kubernetes and kubeadm versions are both 1.21.1

Wytrzymały Wiktor
  • 11,492
  • 5
  • 29
  • 37
MFranc
  • 366
  • 1
  • 2
  • 14
  • Which versions of kubernetes and kubeadm are you using? –  May 25 '21 at 17:29
  • @PawełGrondal see edit. But I think I dont need that nfs provisioner since kubernetes added nfs volumes so the problem might be obsolete. – MFranc May 26 '21 at 10:21

1 Answers1

0

SelfLink is no longer propagated as of version 1.20. Your listed workaround will no longer work.
However you can use newer image gcr.io/k8s-staging-sig-storage/nfs-subdir-external-provisioner:v4.0.0. There is no need to edit kube-apiserver.