Skip to content

Commit

Permalink
feat: iAM Auth
Browse files Browse the repository at this point in the history
  • Loading branch information
RamaRaju-vj committed Jul 1, 2024
1 parent 660b78c commit c46346c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,12 @@ echo "Helm $(helm version)"



############################## INSTALL KUBECTL ############################
############################## INSTALL KUBECTL & IAM AUTHENTICATOR ############################
sudo apt-get update
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key |
sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
# This overwrites any existing configuration in /etc/apt/sources.list.d/kubernetes.list
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /' |
sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update && sudo apt-get install kubectl -y
curl -LO 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; mv ./kubectl /usr/local/bin/kubectl
curl -Lo aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.6.11/aws-iam-authenticator_0.6.11_linux_amd64
chmod +x ./aws-iam-authenticator
mv ./aws-iam-authenticator /usr/local/bin

# Check Kubectl version
echo "Kubectl $(kubectl version --client)"
Expand All @@ -177,6 +175,9 @@ sudo mkdir k8s_files

# on your machine copy the config.yml file to the jenkins container
sudo cp /home/ubuntu/config.yaml /var/lib/jenkins/.kube/
sudo chown jenkins:jenkins /var/lib/jenkins/.kube/*



# check the file on the jenkins container
ls -al .kube
Expand Down

0 comments on commit c46346c

Please sign in to comment.