apt # Installation Java sudo apt install openjdk-17-jdk-headless # Désinstaller Java sudo update-alternatives --list java sudo apt-get purge openjdk-17-* sudo apt autoremove
Terraform
terraform commande terraform init terraform plan terraform destroy terraform destroy -target aws_instance.web terraform destroy -target github_repository.example terraform apply -auto-approve terraform validate terraform fmt Version terraform plan -var="instance_type=t3.micro" terraform plan -var-file=custom.tfvars setx TF_VAR_instance_type t2.micro terraform show Terraform variable assignment
Git Cheatsheet
Google Cloud Platform
gcloud compute instances create my-first-instance gcloud compute instances list gcloud config list gcloud config configurations list gcloud compute instance-templates create test-templates --image=ubuntu-22.04 gcloud config set project kubernetes-406008 gcloud container clusters list gcloud container clusters create mygkecluster --num-nodes 2 --machine-type e2-micro gcloud components install gke-gcloud-auth-plugin kubectl create deployment hello-world-rest-api --image=in28min/hello-world-rest-api:0.0.1.REASE --dry-run=client -o yaml> mydeployment.yaml #Création d'un bucket gsutil mb gs://nom_de_bucket
Gitops
Jira Ticket Jira service desks RUN équipement validation technique Envoie demande de validation aux responsable Faire action sur le projet yaml sur git Push
Monotoring
sp log dynatrace grafana loki prometheus ELK Elasticsearch Logstash Kibana
Vscode Remote Ssh Dev Google Gcp
Vscode Remote Development avec SSH et Google Cloud Platform ssh-keygen -t rsa -b 4096 -C "your-email@example.com" ssh -i "chemin_vers_votre_clé_privée" username@external_ip_address
Helm
helm vs kustomize Helm Helm the package manager for kubernetes Charts Package, un format de package, similaire apt, pip Repositories Répositorie comme apt pip Releases Un déploiement ou installation sur un cluster Exemple: installation Mariadb helm repo add bitnami https://charts.bitnami.com/bitnami helm repo update helm install mon-mariadb bitnami/mariadb helm install my-mariadb bitnami/mariadb --version 14.1.2 helm install mon-mariadb bitnami/mariadb -f mon_fichier.yaml helm uninstall [NOM_DE_LA_RELEASE] helm list helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/mariadb helm install mariadb oci://registry-1....
Python
Anaconda conda cheatsheet
Kubernetes
Kubernetes commandes kubectl get namespaces kubectl get pods -A kubectl get po -A kubectl get pods --context default -n kube-system kubectl get services --context squash -n nightly nightly-cloud-mariadb -o yaml kubectl get deployment --context squash -n nightly-cloud kubectl create ns devops --context myContext .kube/config C:\Users\Formation\.kube kubectl apply -f volume.yaml kubectl get pv kubectl apply -f db-secret.yaml kubectl get secrets db-credentials -o yaml kubectl apply -f volumes.yaml kubectl get pv apply -f volumeClaim....