This file contains 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 characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: craftscene-php-deployment | |
namespace: craftscene-app | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: craftscene-php |
This file contains 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 characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: craftscene-nginx-deployment | |
namespace: craftscene-app | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: craftscene-nginx |
This file contains 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 characters
# 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: |
This file contains 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 characters
#!/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." |
This file contains 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 characters
# 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 |
This file contains 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 characters
# 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 |