Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 0 additions & 54 deletions golang.sh

This file was deleted.

32 changes: 32 additions & 0 deletions k8s-ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

#Exit on error
set -e

sudo -v

#INSTALL DEPENDENCIES

#To allow using https as well as http in apt repository sources
sudo apt-get update && apt-get install -y apt-transport-https

#Docker dependencies
sudo apt install docker.io -y

#To start and enable the Docker service
sudo systemctl start docker

sudo systemctl enable docker

#INSTALL KUBERNETES

#To download and add key for the Kubernetes
sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add

echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list

#Install Kubernetes

sudo apt update -y

sudo apt install -y kubelet kubeadm kubectl kubernetes-cni