2

Anyone having command to install minikube and kubernates on Amazon-linux . I have tried to some linux command but it's not working.

Thanks Baharul Islam

Baharul
  • 145
  • 2
  • 16

1 Answers1

3

kubernetes Installation

cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
yum install -y kubectl

Minikube Installation

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
  && chmod +x minikube

To add the Minikube executable to your path:

sudo cp minikube /usr/local/bin && rm minikube

Sources: Here and here

Make sure to remember that Amazon Linux is based on RHEL/CentOS