Last active
March 13, 2025 08:46
-
-
Save kallebysantos/45245342fff3ffc4e240daf802b71de0 to your computer and use it in GitHub Desktop.
Revisions
-
kallebysantos revised this gist
Jul 26, 2024 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,6 +28,4 @@ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin #### Add permissions to Manage Docker as a non-root user: sudo groupadd docker sudo usermod -aG docker $USER exit -
kallebysantos revised this gist
Jul 26, 2024 . 1 changed file with 33 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ # Server Setup ## **Setup [Docker Engine:](https://www.docker.com/)** #### Uninstall old versions: sudo apt-get update sudo apt-get upgrade -y sudo apt-get remove docker docker-engine docker.io containerd runc #### Set up the docker apt repository: # Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update #### Install Docker Engine: sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin #### Add permissions to Manage Docker as a non-root user: sudo groupadd docker sudo usermod -aG docker $USER newgrp docker docker run hello-world -
kallebysantos revised this gist
May 9, 2023 . No changes.There are no files selected for viewing
-
kallebysantos revised this gist
Mar 1, 2023 . 1 changed file with 11 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -89,8 +89,18 @@ > sudo mv /home/ubuntu/.arkade/bin/minikube /usr/local/bin/ > ``` > > Adding [Kubectl:](https://minikube.sigs.k8s.io/docs) > > ``` > arkade get kubectl > ``` > > ``` > sudo mv /home/ubuntu/.arkade/bin/kubectl /usr/local/bin/ > ``` > > ``` > kubectl --help > ``` > Adding [Helm:](https://helm.sh) -
kallebysantos revised this gist
Mar 1, 2023 . 1 changed file with 17 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -75,10 +75,12 @@ --- ### **Setup Kubernetes:** #### Installation: > Adding [Minikube:](https://minikube.sigs.k8s.io/docs) > > ``` > arkade get minikube > ``` @@ -91,6 +93,20 @@ > minikube start > ``` > Adding [Helm:](https://helm.sh) > > ``` > arkade get helm > ``` > > ``` > sudo mv /home/ubuntu/.arkade/bin/helm /usr/local/bin/ > ``` > > ``` > helm --help > ``` #### Accessing minikube dashboard: > Run minikube dashboard as background job: -
kallebysantos revised this gist
Mar 1, 2023 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,13 +4,13 @@ ### **Setup [Docker Engine:](https://www.docker.com/)** #### Uninstall old versions: > ``` > sudo apt-get remove docker docker-engine docker.io containerd runc > ``` #### Set up the docker apt repository: > ``` > sudo apt-get update @@ -24,7 +24,7 @@ > lsb-release > ``` #### Add Docker’s official GPG key: > ``` > sudo mkdir -m 0755 -p /etc/apt/keyrings @@ -34,7 +34,7 @@ > curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg > ``` #### Install Docker Engine: > ``` > sudo apt-get update @@ -44,7 +44,7 @@ > sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin > ``` #### Add permissions to Manage Docker as a non-root user: > ``` > sudo groupadd docker -
kallebysantos created this gist
Mar 1, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,112 @@ # Server Setup ## Installing environment tools: ### **Setup [Docker Engine:](https://www.docker.com/)** ### Uninstall old versions: > ``` > sudo apt-get remove docker docker-engine docker.io containerd runc > ``` ### Set up the docker apt repository: > ``` > sudo apt-get update > ``` > > ``` > sudo apt-get install \ > ca-certificates \ > curl \ > gnupg \ > lsb-release > ``` ### Add Docker’s official GPG key: > ``` > sudo mkdir -m 0755 -p /etc/apt/keyrings > ``` > > ``` > curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg > ``` ### Install Docker Engine: > ``` > sudo apt-get update > ``` > > ``` > sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin > ``` ### Add permissions to Manage Docker as a non-root user: > ``` > sudo groupadd docker > ``` > > ``` > sudo usermod -aG docker $USER > ``` > > Log out and log back in so that your group membership is re-evaluated. > ``` > docker run hello-world > ``` --- ### **Setup [Arkade:](https://github.com/alexellis/arkade#download-cli-tools-with-arkade)** > ``` > curl -sLS https://get.arkade.dev | sudo sh > ``` > > ``` > arkade --help > ark --help # a handy alias > ``` --- ### **Setup [Minikube:](https://minikube.sigs.k8s.io/docs)** #### Installation: > ``` > arkade get minikube > ``` > > ``` > sudo mv /home/ubuntu/.arkade/bin/minikube /usr/local/bin/ > ``` > > ``` > minikube start > ``` #### Accessing minikube dashboard: > Run minikube dashboard as background job: > > ``` > minikube dashboard & > ``` > > Start kubectl proxy: > > ``` > minikube kubectl proxy > ``` > > Access dashboard remotely: > > ``` > ssh -L 80:localhost:8001 myLogin@myRemoteServer > ```