[Doc] --fail-swap-on=False is necessary for KUBELET_EXTRA_ARGS

Bug #1737770 reported by Yushiro FURUKAWA
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-kubernetes
In Progress
Undecided
Yushiro FURUKAWA

Bug Description

In the latest deployment-guide(https://docs.openstack.org/kolla-kubernetes/latest/deployment-guide.html), kubelet doesn't start because following definition is missing in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf:

  Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false"

[Environment]
  os: Ubuntu16.04.3 LTS All-in-One node

[Without definition(Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false")]
$ sudo kubeadm init --pod-network-cidr=10.1.0.0/16 --service-cidr=10.3.3.0/24
[kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters.
[init] Using Kubernetes version: v1.8.5
[init] Using Authorization modes: [Node RBAC]
[preflight] Running pre-flight checks
[preflight] Some fatal errors occurred:
    running with swap on is not supported. Please disable swap
[preflight] If you know what you are doing, you can skip pre-flight checks with `--skip-preflight-checks`

[With definition(Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false")]
$ sudo kubeadm init --pod-network-cidr=10.1.0.0/16 --service-cidr=10.3.3.0/24
[kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters.
[init] Using Kubernetes version: v1.8.5
[init] Using Authorization modes: [Node RBAC]
[preflight] Running pre-flight checks
[preflight] Some fatal errors occurred:
    running with swap on is not supported. Please disable swap
[preflight] If you know what you are doing, you can skip pre-flight checks with `--skip-preflight-checks`

[With definition(Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false") with --skip-preflight-checks]
$ sudo kubeadm init --pod-network-cidr=10.1.0.0/16 --service-cidr=10.3.3.0/24 --skip-preflight-checks
..(snip)..
Your Kubernetes master has initialized successfully!
To start using your cluster, you need to run (as a regular user):
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
You should now deploy a pod network to the cluster.
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
http://kubernetes.io/docs/admin/addons/

As a result, in order to run kubeadm init, following parameters are missing:

  1. Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false" at /etc/systemd/system/kubelet.service.d/10-kubeadm.conf

  2. --skip-preflight-checks option for kubeadm init

summary: - --fail-swap-on=False is necessary for KUBELET_EXTRA_ARGS
+ [Doc] --fail-swap-on=False is necessary for KUBELET_EXTRA_ARGS
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-kubernetes (master)

Fix proposed to branch: master
Review: https://review.openstack.org/527416

Changed in kolla-kubernetes:
assignee: nobody → Yushiro FURUKAWA (y-furukawa-2)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla-kubernetes (master)

Change abandoned by Yushiro FURUKAWA (<email address hidden>) on branch: master
Review: https://review.openstack.org/527416
Reason: move to https://review.openstack.org/#/c/524125/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.