Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-19659

The KUBELET_NODE_IPS does not reflect in the kubelet service after the dual-stack conversion

XMLWordPrintable

    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Manual clone of OCPBUGS-15910

      $ oc get mc 01-master-kubelet -o json | jq -r '.spec.config.systemd.units | .[] | select(.name=="kubelet.service") | .contents'
      [Unit]
      Description=Kubernetes Kubelet
      Wants=rpc-statd.service network-online.target
      Requires=crio.service kubelet-auto-node-size.service
      After=network-online.target crio.service kubelet-auto-node-size.service
      After=ostree-finalize-staged.service
      
      [Service]
      Type=notify
      ExecStartPre=/bin/mkdir --parents /etc/kubernetes/manifests
      ExecStartPre=/bin/rm -f /var/lib/kubelet/cpu_manager_state
      ExecStartPre=/bin/rm -f /var/lib/kubelet/memory_manager_state
      EnvironmentFile=/etc/os-release
      EnvironmentFile=-/etc/kubernetes/kubelet-workaround
      EnvironmentFile=-/etc/kubernetes/kubelet-env
      EnvironmentFile=/etc/node-sizing.env
      
      ExecStart=/usr/local/bin/kubenswrapper \
          /usr/bin/kubelet \
            --config=/etc/kubernetes/kubelet.conf \
            --bootstrap-kubeconfig=/etc/kubernetes/kubeconfig \
            --kubeconfig=/var/lib/kubelet/kubeconfig \
            --container-runtime=remote \
            --container-runtime-endpoint=/var/run/crio/crio.sock \
            --runtime-cgroups=/system.slice/crio.service \
            --node-labels=node-role.kubernetes.io/control-plane,node-role.kubernetes.io/master,node.openshift.io/os_id=${ID} \
            --node-ip=${KUBELET_NODE_IP} \
            --minimum-container-ttl-duration=6m0s \
            --cloud-provider= \
            --volume-plugin-dir=/etc/kubernetes/kubelet-plugins/volume/exec \
             \
            --hostname-override=${KUBELET_NODE_NAME} \
            --provider-id=${KUBELET_PROVIDERID} \
            --register-with-taints=node-role.kubernetes.io/master=:NoSchedule \
            --pod-infra-container-image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:4c0a1b82501a416df4b926801bc3aa378d2762d0570a0791c6675db1a3365c62 \
            --system-reserved=cpu=${SYSTEM_RESERVED_CPU},memory=${SYSTEM_RESERVED_MEMORY},ephemeral-storage=${SYSTEM_RESERVED_ES} \
            --v=${KUBELET_LOG_LEVEL}
      
      Restart=always
      RestartSec=10
      
      [Install]
      WantedBy=multi-user.target 

      https://github.com/openshift/machine-config-operator/blob/29b3729923273ae7f42cd20e096fa1a390d4b108/templates/master/01-master-kubelet/_base/units/kubelet.service.yaml#L33

            mkowalsk@redhat.com Mat Kowalski
            rhn-support-vkochuku Vinu Kochukuttan
            Zhanqi Zhao Zhanqi Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: