Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v1.14.7
  • v1.14.6
  • v1.14.5
  • v1.14.4
  • v1.14.3
  • v1.14.2
  • v1.14.1
  • v1.14.0
  • v1.13.2
  • v1.13.1
  • v1.13.0
  • v1.12.1
  • v1.12.0
  • v1.11.1
  • v1.11.0
  • v1.10.0
  • v1.9.2
  • v1.9.1
  • v1.9.0
  • v1.8.4
21 results

playbooks

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Florent Monbillard authored
    Currently, the task `container_download | download images for kubeadm config images` fetches etcd image even though it's not required (etcd is bootstrapped by kubespray, not kubeadm).
    
    `kubeadm-images.yaml` is only a subset of `kubeadm-config.yaml`, therefore ``kubeadm config images pull` will try to get all this list (including etcd)
    
    ```
    # kubeadm config images list --config /etc/kubernetes/kubeadm-images.yaml
    k8s.gcr.io/kube-apiserver:v1.13.2
    k8s.gcr.io/kube-controller-manager:v1.13.2
    k8s.gcr.io/kube-scheduler:v1.13.2
    k8s.gcr.io/kube-proxy:v1.13.2
    k8s.gcr.io/pause:3.1
    k8s.gcr.io/etcd:3.2.24
    k8s.gcr.io/coredns:1.2.6
    ```
    
    When using the `kubeadm-config.yaml` though, it doesn't list etcd image:
    
    ```
    # kubeadm config images list --config /etc/kubernetes/kubeadm-config.yaml
    k8s.gcr.io/kube-apiserver:v1.13.2
    k8s.gcr.io/kube-controller-manager:v1.13.2
    k8s.gcr.io/kube-scheduler:v1.13.2
    k8s.gcr.io/kube-proxy:v1.13.2
    k8s.gcr.io/pause:3.1
    k8s.gcr.io/coredns:1.2.6
    ```
    
    This change just adds the etcd endpoints in the `kubeadm-images.yaml` to give a hint to kubeadm it doesn't need etcd image for its boostrapping as etcd is "external".
    I confess it is a ugly hack, a better way would be to use a single `kubeadm-config.yaml` for both tasks, but they are triggered by different roles (`kubeadm-images.yaml` is used by download, `kubeadm-config.yaml` by kubernetes/master) at different steps and I didn't want to refactor too many things to prevent breakage. 
    
    This is specially useful for offline installation where a whitelist of container images is mirrored on a local private container registry. `k8s.gcr.io/etcd` and `quay.io/coreos/etcd`  are two different repositories hosting the same images but using *different tags*! 
    * coreos/etcd:v3.2.24   
    * k8s.gcr.io/etcd:3.2.24 (note the missing 'v' in the tag name)
    061f5a31
    History
    Name Last commit Last update
    ..