Skip to content

Instantly share code, notes, and snippets.

@marcelmaatkamp
Created February 4, 2022 10:56
Show Gist options
  • Save marcelmaatkamp/48edccf7d631ada926ef81bb883f4b5f to your computer and use it in GitHub Desktop.
Save marcelmaatkamp/48edccf7d631ada926ef81bb883f4b5f to your computer and use it in GitHub Desktop.
Install terraform and kubectl
$ \
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
&&\
curl -fsSL https://apt.releases.hashicorp.com/gpg | \
sudo apt-key add - &&\
sudo apt-add-repository \
"deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main" &&\
sudo apt install \
terraform &&\
sudo curl -fsSLo \
/usr/share/keyrings/kubernetes-archive-keyring.gpg \
https://packages.cloud.google.com/apt/doc/apt-key.gpg &&\
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | \
sudo tee /etc/apt/sources.list.d/kubernetes.list
$ \
sudo apt install -y \
terraform \
kubectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment