Skip to content

Commit 7710669

Browse files
authored
Merge pull request #30251 from aysabzevar/feature/add-sudo-redhat-ko
[ko] add sudo to Red Hat-based distributions
2 parents ff7a649 + bf117eb commit 7710669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/ko/docs/tasks/tools/install-kubectl-linux.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ card:
130130
{{% /tab %}}
131131

132132
{{< tab name="레드햇 기반의 배포판" codelang="bash" >}}
133-
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
133+
cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
134134
[kubernetes]
135135
name=Kubernetes
136136
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
@@ -139,7 +139,7 @@ gpgcheck=1
139139
repo_gpgcheck=1
140140
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
141141
EOF
142-
yum install -y kubectl
142+
sudo yum install -y kubectl
143143
{{< /tab >}}
144144
{{< /tabs >}}
145145

0 commit comments

Comments
 (0)