File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
content/en/docs/setup/production-environment/tools/kubeadm Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ sudo apt-mark hold kubelet kubeadm kubectl
191
191
{{% /tab %}}
192
192
{{% tab name="CentOS, RHEL or Fedora" %}}
193
193
``` bash
194
- cat << EOF > /etc/yum.repos.d/kubernetes.repo
194
+ cat << EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
195
195
[kubernetes]
196
196
name=Kubernetes
197
197
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-\$ basearch
@@ -203,12 +203,12 @@ exclude=kubelet kubeadm kubectl
203
203
EOF
204
204
205
205
# Set SELinux in permissive mode (effectively disabling it)
206
- setenforce 0
207
- sed -i ' s/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
206
+ sudo setenforce 0
207
+ sudo sed -i ' s/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
208
208
209
- yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
209
+ sudo yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
210
210
211
- systemctl enable --now kubelet
211
+ sudo systemctl enable --now kubelet
212
212
```
213
213
214
214
** Notes:**
You can’t perform that action at this time.
0 commit comments