#!/bin/sh

. /etc/kubernetes/kubelet
. /etc/kubernetes/config

TEMP_KUBELET_ARGS='--cgroups-per-qos=false --enforce-node-allocatable='

ARGS="$@ $TEMP_KUBELET_ARGS $KUBE_LOGTOSTDERR $KUBE_LOG_LEVEL $KUBELET_API_SERVER $KUBELET_ADDRESS $KUBELET_PORT $KUBELET_HOSTNAME $KUBE_ALLOW_PRIV $KUBELET_ARGS"

ARGS=$(echo $ARGS | sed s/--cadvisor-port=0//)
ARGS=$(echo $ARGS | sed s/--require-kubeconfig//)
ARGS=$(echo $ARGS | sed s/node-role/node/)

exec /hyperkube kubelet $ARGS

#!/bin/sh

. /etc/kubernetes/kubelet
. /etc/kubernetes/config

TEMP_KUBELET_ARGS='--cgroups-per-qos=false --enforce-node-allocatable='

ARGS="$@ $TEMP_KUBELET_ARGS $KUBE_LOGTOSTDERR $KUBE_LOG_LEVEL $KUBELET_API_SERVER $KUBELET_ADDRESS $KUBELET_PORT $KUBELET_HOSTNAME $KUBE_ALLOW_PRIV $KUBELET_ARGS"

ARGS=$(echo $ARGS | sed s/--cadvisor-port=0//)
ARGS=$(echo $ARGS | sed s/--require-kubeconfig//)
ARGS=$(echo $ARGS | sed s/node-role/node/)

exec /hyperkube kubelet $ARGS --containerized

Use --containerized flag to support 1.{13,14,15}.x in Atomic
Use --containerized flag to support 1.{13,14,15}.x in Atomic

The flag has been removed in Kubernetes version 1.16.x for which users
should use Podman but to continue to use Fedora Atomic without
use_podman=true which means using Docker 1.13.x, ServiceAccount tokens
cannot be propagated without using the --containerized flag when
use_podman=false.

This flag should not have been removed in
I3efd4e55e885b95721f13279b44dc1246e2fd2e4.

Story: 2006846
Task: 37434

Change-Id: I5ccef63de928ff01d10dc4cc500d0e1583eb0378
