Skip to content

Commit

Permalink
installation of kubectl and kops
Browse files Browse the repository at this point in the history
  • Loading branch information
microservicescontainers authored Mar 15, 2020
1 parent ce05e8e commit 3df5730
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions setup_manage_k8s_machine
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

sudo yum update

curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl

curl -Lo kops https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-darwin-amd64

ls

chmod +x ./kops

sudo mv ./kops /usr/local/bin/

kops

curl -Lo kops https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64

chmod +x ./kops

sudo mv ./kops /usr/local/bin/

kops


curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl

chmod +x ./kubectl

sudo mv ./kubectl /usr/local/bin/kubectl

kubectl


kubectl version

0 comments on commit 3df5730

Please sign in to comment.