-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmisc_install.sh
More file actions
49 lines (34 loc) · 1.29 KB
/
Copy pathmisc_install.sh
File metadata and controls
49 lines (34 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Ansible Install
$ sudo apt-add-repository --yes --update ppa:ansible/ansible
$ sudo apt install ansible -y
ansible --version
# Docker Install
sudo apt update
sudo apt install curl -y
curl https://get.docker.com | sudo bash
sudo usermod -aG docker $(whoami)
sudo reboot
docker run --rm hello-world
# Docker Compose
# make sure jq & curl is installed
sudo apt update
sudo apt install -y curl jq
# set which version to download (latest)
version=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.tag_name')
# download to /usr/local/bin/docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/${version}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# make the file executable
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
# EKS
sudo apt update
sudo apt install awscli
aws configure
(enter access key, secret key, region eu-west-1)
curl -o kubectl https://s3.us-west-2.amazonaws.com/amazon-eks/1.22.6/2022-03-09/bin/linux/amd64/kubectl
chmod +x ./kubectl
mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
kubectl version --short --client
aws eks update-kubeconfig --region eu-west-1 --name epa-cluster
kubectl get svc