- 1 X Ubuntu server T2.small for Jenkins-Server (IP PUBLIC)
- 1 X Ubuntu Server t2.micro for Docker-server
- 2 X Ubuntu server té.medium for Kubernetes-server-AZ1 & Kubernetes-server-AZ1
sudo apt install openjdk-11-jdk-headless -y sudo apt update -y sudo apt upgrade -y
curl -fsSL https://pkg.jenkins.io/debian/jenkins.io.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null sudo apt-get update sudo apt-get install jenkins -y
sudo systemctl status jenkins sudo systemctl start jenkins sudo systemctl enable --now jenkins
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Allez dans Manage Pluging > Installer SSH Agent
Etape à suivre
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] 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
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
solution : sudo chmod 644 /var/run/docker.sock
curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644
Desinstallation = /usr/local/bin/k3s-uninstall.sh
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 chmod 700 get_helm.sh ./get_helm.sh
sudo chmod 644 /etc/rancher/k3s/k3s.yaml
Erreur lancement HELM (Error: INSTALLATION FAILED: Kubernetes cluster unreachable: Get "http://localhost:8080/version": dial tcp 127.0.0.1:8080: connect: connection refused)
Solution : export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
sudo kubectl config set-context --current --namespace=filrouge-prod
kubectl get pods -o wide
helm uninstall filrouge-chart-prod
helm list --all-namespaces
filrouge-prod.kawaz.cloudns.ph > my-load-balancer-2054635803.eu-west-3.elb.amazonaws.com
Ajout des zone de disponiblités eu-west-3B & eu-west-3a (Sous réséaux publix) Creation d'un groupe cible (sous réseaux privé ) Ajout du protocole 80 et 443