Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Latest commit

 

History

History
104 lines (73 loc) · 2.23 KB

dev-setup.md

File metadata and controls

104 lines (73 loc) · 2.23 KB

Dev Setup

What are some of the setups I need when working with Cloud?

  • Setup ssh to compute/ec2 instance (this could be limited to Ubuntu machines)
  • Setup FTP client to connect your local machine to compute/ec2, using your private ssh key created in step before, in case you want to push/pull files. I use FileZilla.

Cloud GCP Setup

Compute Engines

  • [Imp] If you're like to setup SSH keys globally, navigate to compute -> metadata to add your key there instead.
  • Make sure to always have a right sized machine. Try using micro for small work
  • Always have a default script while setting up a compute engine
Basic Script
sudo apt-get update
sudo apt-get upgrade
Adding dependencies
# more information about processes. Refer: https://hisham.hm/htop/
sudo apt-get install htop
Compute Shell Commands
$ cat /etc/os-release    - Find operating system installed
$ free                   - display free system resources

Kubernetes Setup - to be worked on

Linux Distribution Repositories

yum
apt

Required Packages

kubelet
kubeadm
kubectl
Container Runtime (Docker is a default choice)

Commands
--------
$ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

$ sudo cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
  deb https://apt.kubernetes.io/kubernetes-xenial main
  EOF

$ sudo apt-get update

$ sudo apt-get install -y kubelet kubeadm kubectl docker.io

// Let kubernetes manage update of these packages instead of apt
$ sudo apt-mark hold kubelet kubeadm kubectl docker.io

Docker

https://docs.docker.com/install/linux/docker-ce/ubuntu/

Setup Docker Repository
-----------------------
$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo apt-key fingerprint 0EBFCD88
$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

Minikube

https://kubernetes.io/docs/tasks/tools/install-minikube/

Kubernetes in Docker (kind)

https://github.com/kubernetes-sigs/kind