File tree Expand file tree Collapse file tree
canonical-kubernetes/steps Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,11 +11,16 @@ cmd_to_run="~/bin/kubectl.$JUJU_MODEL"
1111juju scp -m $JUJU_CONTROLLER :$JUJU_MODEL kubernetes-master/0:config ~ /.kube/config.$JUJU_MODEL
1212
1313if [[ $( uname -s) = " Darwin" ]]; then
14- curl -sLO https://storage.googleapis.com/kubernetes-release/release/$( curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) /bin/darwin/amd64/kubectl
14+ repo=https://storage.googleapis.com/kubernetes-release/release/$( curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) /bin/darwin/amd64/
15+ curl -sLO $repo /kubectl
1516 chmod +x kubectl
1617 mv kubectl /usr/local/bin/kubectl
18+ curl -sLO $repo /kubefed
19+ chmod +x kubefed
20+ mv kubefed /usr/local/bin/kubefed
1721else
1822 sudo snap install kubectl --classic 1>&2
23+ sudo snap install kubefed --classic 1>&2
1924fi
2025
2126echo " kubectl --kubeconfig=$HOME /.kube/config.$JUJU_MODEL \$ @" > $HOME /bin/kubectl.$JUJU_MODEL
Original file line number Diff line number Diff line change 11title : Kubernetes Cluster Controller
2- description : Download the kubectl client program to your local host
2+ description : Download the kubectl and kubefed client programs to your local host
33viewable : True
44sudo : True
Original file line number Diff line number Diff line change @@ -11,11 +11,16 @@ cmd_to_run="~/bin/kubectl.$JUJU_MODEL"
1111juju scp -m $JUJU_CONTROLLER :$JUJU_MODEL kubernetes-master/0:config ~ /.kube/config.$JUJU_MODEL
1212
1313if [[ $( uname -s) = " Darwin" ]]; then
14- curl -sLO https://storage.googleapis.com/kubernetes-release/release/$( curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) /bin/darwin/amd64/kubectl
14+ repo=https://storage.googleapis.com/kubernetes-release/release/$( curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) /bin/darwin/amd64/
15+ curl -sLO $repo /kubectl
1516 chmod +x kubectl
1617 mv kubectl /usr/local/bin/kubectl
18+ curl -sLO $repo /kubefed
19+ chmod +x kubefed
20+ mv kubefed /usr/local/bin/kubefed
1721else
1822 sudo snap install kubectl --classic 1>&2
23+ sudo snap install kubefed --classic 1>&2
1924fi
2025
2126echo " kubectl --kubeconfig=$HOME /.kube/config.$JUJU_MODEL \$ @" > $HOME /bin/kubectl.$JUJU_MODEL
Original file line number Diff line number Diff line change 11title : Kubernetes Cluster Controller
2- description : Download the kubectl client program to your local host
2+ description : Download the kubectl and kubefed client programs to your local host
33viewable : True
44sudo : True
You can’t perform that action at this time.
0 commit comments