Uploaded image for project: 'OpenShift Windows Containers'
  1. OpenShift Windows Containers
  2. WINC-924

Stop using deprecated kubelet command line args

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • WMCO 10.16.0
    • None
    • None
    • 5
    • False
    • None
    • False
    • WINC - Sprint 249

      Description

      We want to stop using deprecated command line flags when starting kubelet. The new approach is to specify kubelet arguments through the kubelet configuration file.

      Engineering Details

      Some args will need to be moved from the kubelet spec as defined in the services configmap to the KubeletConfiguration in nodeconfig.

      Current kubelet log:

      Flag --logtostderr has been deprecated, will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components
      Flag --log-file has been deprecated, will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components
      Flag --register-with-taints has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
      Flag --container-runtime has been deprecated, will be removed in 1.27 as the only valid value is 'remote'
      Flag --resolv-conf has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
      Flag --cloud-provider has been deprecated, will be removed in 1.25 or later, in favor of removing cloud provider code from Kubelet.
      Flag --enforce-node-allocatable has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.

      Acceptance Criteria

      Deprecated command line flags are removed. No warnings in Kubelet log about deprecated flags when the service starts.

      QE supporting information

      Check kubelet logs in Windows instance /var/log/kubelet/kubelet.log no deprecated flag warning should appear.

              jvaldes@redhat.com Jose Valdes
              mohashai Mohammad Shaikh
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: