任何有命令在Amazon-linux上安装minikube和kubernates的人。我尝试了一些linux命令,但是它不起作用。
谢谢 巴哈鲁伊斯兰教
答案 0 :(得分:0)
kubernetes安装
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安装
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube
要将Minikube可执行文件添加到您的路径:
sudo cp minikube /usr/local/bin && rm minikube
请确保记住Amazon Linux基于RHEL / CentOS