rancher / rke

Rancher Kubernetes Engine (RKE), an extremely simple, lightning fast Kubernetes distribution that runs entirely within containers.
Apache License 2.0
3.22k stars 582 forks source link

[forwardport] `always_pull_images: true` doesn't get applied #1718

Closed alena1108 closed 4 years ago

alena1108 commented 5 years ago

Forwardport https://github.com/rancher/rke/issues/1690

aaronyeeski commented 4 years ago

Verified using version v1.1.0-rc1

Do an rke up with always_pull_images: true set in cluster.yml file. On docker inspect kube-apiserver, AlwaysPullImages argument is set.

"Args": [
...
"--enable-admission plugins=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,NodeRestriction,Priority,TaintNodesByCondition,PersistentVolumeClaimResize,AlwaysPullImages",
...

On docker logs kube-apiserver - AlwaysPullImages is being set.

+.........--enable-admission-plugins=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,NodeRestriction,Priority,TaintNodesByCondition,PersistentVolumeClaimResize,AlwaysPullImages