Skip to content

Instantly share code, notes, and snippets.

View johnbedeir's full-sized avatar
📚
Studying Everything

JohnyDev johnbedeir

📚
Studying Everything
View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: craftscene-php-deployment
namespace: craftscene-app
spec:
replicas: 1
selector:
matchLabels:
app: craftscene-php
apiVersion: apps/v1
kind: Deployment
metadata:
name: craftscene-nginx-deployment
namespace: craftscene-app
spec:
replicas: 1
selector:
matchLabels:
app: craftscene-nginx
# Go kit Introduction
Go kit is a library for building microservices in Go. It offers tools that facilitate the implementation of microservices in a robust and scalable manner.
## Getting Started
### 1. Setup
Ensure Go is installed. Install the Go kit library:
@johnbedeir
johnbedeir / install-sonar-scanner.sh
Created March 30, 2023 14:49 — forked from chetanppatil/install-sonar-scanner.sh
Install sonar-scanner in linux mint, ubuntu...
#!/bin/bash
cd /tmp || exit
echo "Downloading sonar-scanner....."
if [ -d "/tmp/sonar-scanner-cli-4.7.0.2747-linux.zip" ];then
sudo rm /tmp/sonar-scanner-cli-4.7.0.2747-linux.zip
fi
wget -q https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip
echo "Download completed."
@johnbedeir
johnbedeir / gist:020d2958c7e99c4f93e04a321b39b9ac
Created February 14, 2022 17:57
Terraform | EC2 | Security_Group | Key_Pair | AWS
# Create AWS EC2 using Terraform
[Watch Terraform_Part1 شرح on YouTube](https://youtu.be/zF_N4flz8lw)
[Watch Terraform_Part2 شرح on YouTube](https://youtu.be/V6CPs_C9v8A)
## 1. Intsall [Terraform CLI](https://www.terraform.io/downloads)
## 2. Create providers.tf file
```bash
@johnbedeir
johnbedeir / gist:720b58c5feaf8b257625c0d50d369c1c
Last active December 18, 2022 08:44
Run Kubernetes Locally
# How to install and run kubernetes locally (Ubuntu)
## 1. Intsall [Kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/)
## 2. Intsall [MiniKube](https://minikube.sigs.k8s.io/docs/start/)
## 3. Add Docker to Sudo group:
```bash
# (required) to be able to start minikube
$ sudo groupadd docker