Enabling feature gate doesn't seem to work (ServiceAppProtocol, k8s 1.18)

Things I’ve tried so far:

  • checked that feature gate is enabled in kubeadm (listed under featureGates option in kubelet.config.k8s.io/v1beta1 object)
  • checked that kubeadm runs and upgrades the cluster
  • checked that feature gate is in kubelet-config-1.18 configmap
  • it’s also in /var/lib/kubelet/config.yaml that is passed as an argument to kubelet
  • restarted kubelet on all master hosts
  • restarted all the apiserver and controller manager pods

and yet kubectl still refuses to create a service that uses ServiceAppProtocol attribute (appProtocol: xyz)

what’s the trick?

Cluster information:

Kubernetes version: 1.18.9
Installation method: kubeadm
Host OS: ubuntu 18.04

Post yaml?

sure, there’s nothing special, this is in kubeadm.yaml:

---
address: 0.0.0.0
apiVersion: kubelet.config.k8s.io/v1beta1
...
featureGates:
  LocalStorageCapacityIsolationFSQuotaMonitoring: true
  ServiceAppProtocol: true

I meant service YAML :slight_smile: