Skip to content

Commit

Permalink
kubectl config script update
Browse files Browse the repository at this point in the history
  • Loading branch information
cristov committed Sep 3, 2018
1 parent e594e7a commit fb0461e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Once your Cloud9 is ready, download the build script and install in your IDE. Th

To install the script, run this command in the "bash" terminal tab of the Cloud9 IDE:

curl -o https://raw.githubusercontent.com/cristov/aws-techsummit2018-kubernetes-workshop/master/scripts/lab-ide-setup.sh
wget https://raw.githubusercontent.com/cristov/aws-techsummit2018-kubernetes-workshop/master/scripts/lab-ide-setup.sh
chmod +x lab-ide-setup.sh && \
. ./lab-ide-setup.sh

Expand Down
9 changes: 6 additions & 3 deletions scripts/lab-ide-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ echo "source <(kubectl completion bash)" >> ~/.bashrc

# Install Heptio Authenticator
go get -u -v github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator
sudo mv ./go/bin/aws-iam-authenticator /usr/local/bin/
sudo mv ~/go/bin/aws-iam-authenticator /usr/local/bin/

# Install kops
curl -LO 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
Expand Down Expand Up @@ -92,7 +92,10 @@ ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
aws ec2 create-key-pair --key-name ${AWS_STACK_NAME} --query 'KeyMaterial' --output text > $HOME/.ssh/k8s-workshop.pem
chmod 0400 $HOME/.ssh/k8s-workshop.pem

if [ ! -d "scripts" ]; then
if [ ! -d "aws-techsummit2018-kubernetes-workshop" ]; then
# Download scripts
svn export https://github.com/cristov/aws-techsummit2018-kubernetes-workshop.git/scripts
git clone https://github.com/cristov/aws-techsummit2018-kubernetes-workshop.git

# Read viriable for script
source ~/.bashrc
fi

0 comments on commit fb0461e

Please sign in to comment.