Skip to content

Instantly share code, notes, and snippets.

View lemin-ou's full-sized avatar
🏠
Working from home

Mohamed Lemine Ahmedou Yassin lemin-ou

🏠
Working from home
View GitHub Profile
@lemin-ou
lemin-ou / config
Created May 13, 2024 21:22
Kubeconfig for EKS
#!/bin/bash
# resource that will help you setup mutli-cluster configuration : https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html
read -r -d '' KUBECONFIG <<EOF
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: $certificate_data
server: $cluster_endpoint
name: arn:aws:eks:$region_code:$account_id:cluster/$cluster_name
@lemin-ou
lemin-ou / install-docker-on-ubuntu.sh
Created May 13, 2024 21:18
Install Docker on ubuntu
# Add Docker's official GPG key:
sudo apt-get update -y
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update -y
apt-cache madison docker-ce
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
@lemin-ou
lemin-ou / configmap.yaml
Last active May 13, 2024 21:16
Configure notification for ArgoCD
apiVersion: v1
data:
context: |
# this can be changed anytime, developers must portforward argocd server service
# using the following command
# kubectl port-forward -n argocd svc/argocd-server 2323:80
argocdUrl: http://localhost:2323
environment: Developement
environmentShortName: dev
service.slack: |