You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New -node-kubelet-repository flag (default: quay.io/poseidon/kubelet) (#801)
on Flatcar Linux:
* -node-hyperkube-image is used only for kubelet version < 1.18
* replace RKT / kubelet-wrapper usage with docker
on CoreOS ContainerLinux:
* no changes
Signed-off-by: Artiom Diomin <[email protected]>
Copy file name to clipboardExpand all lines: cmd/machine-controller/main.go
+21-8Lines changed: 21 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,7 @@ var (
82
82
nodeRegistryMirrorsstring
83
83
nodePauseImagestring
84
84
nodeHyperkubeImagestring
85
+
nodeKubeletRepositorystring
85
86
)
86
87
87
88
const (
@@ -165,7 +166,8 @@ func main() {
165
166
flag.StringVar(&nodeInsecureRegistries, "node-insecure-registries", "", "Comma separated list of registries which should be configured as insecure on the container runtime")
166
167
flag.StringVar(&nodeRegistryMirrors, "node-registry-mirrors", "", "Comma separated list of Docker image mirrors")
167
168
flag.StringVar(&nodePauseImage, "node-pause-image", "", "Image for the pause container including tag. If not set, the kubelet default will be used: https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/")
168
-
flag.StringVar(&nodeHyperkubeImage, "node-hyperkube-image", "k8s.gcr.io/hyperkube-amd64", "Image for the hyperkube container excluding tag.")
169
+
flag.StringVar(&nodeHyperkubeImage, "node-hyperkube-image", "k8s.gcr.io/hyperkube-amd64", "Image for the hyperkube container excluding tag. Only has effect on CoreOS Container Linux and Flatcar Linux, and for kubernetes < 1.18.")
170
+
flag.StringVar(&nodeKubeletRepository, "node-kubelet-repository", "quay.io/poseidon/kubelet", "Repository for the kubelet container. Only has effect on Flatcar Linux, and for kubernetes >= 1.18.")
For ContainerLinux nodes the [hyperkube](https://github.com/kubernetes/kubernetes/tree/master/cluster/images/hyperkube) image must be accessible as well.
31
-
This is due to the usage of the [kubelet-wrapper](https://github.com/coreos/coreos-kubernetes/blob/master/Documentation/kubelet-wrapper.md).
32
30
33
-
By default the image `k8s.gcr.io/hyperkube-amd64` will be used.
34
-
If that image won't be accessible from the node, a custom image can be specified on the machine-controller:
31
+
## Kubelet images
32
+
33
+
### CoreOS ContainerLinux
34
+
For ContainerLinux nodes, the [hyperkube][1] image must be accessible as well. This is due to the usage of the
35
+
[kubelet-wrapper][2].
36
+
37
+
By default the image `k8s.gcr.io/hyperkube-amd64` will be used. If that image won't be accessible from the node, a
38
+
custom image can be specified on the machine-controller:
39
+
```bash
40
+
# Do not set a tag. The tag depends on the used Kubernetes version of a machine.
41
+
# Example:
42
+
# A Node using v1.14.2 would use 192.168.1.1:5000/kubernetes/hyperkube-amd64:v1.14.2
0 commit comments