Code Snippet

Just another Code Snippet site

How-To

[Terraform] How-To

Install Terraform on Linux server : Check https://www.terraform.io/downloads.html for download Main commands : Init : Dry run : Apply : Destroy : Define docker provider (main.tf) :

[How-To] Kubernetes

Install KubeCtl on windows : https://kubernetes.io/fr/docs/tasks/tools/install-kubectl/ Install KubeCtl on CentOS/RHEL Define config file : Create a deployment: Create a service to expose the deployment : Get service info (and LoadBalancer port) : Scale deployment Delete deployment(s) Describe deployment(s) Add private repo to container.d: edit /etc/containerd/config.toml Restart container.d Test a pull using crictl

, , , ,

[How-To] ELK

Elasticsearch commands : Create simple lifecycle policy with a retention of 30 days : Create a simple template with Lifecycle policy: Enable read/write on all indexes: Create lifecycle policy with a retention of 10 days and a rollowver of 5 days :

, , , , ,

Linux | /etc/security/limits.conf

Limiting user processes is important for running a stable system. To limit user process resource, you have just to set shell limit by adding: a user name or group name or all users to /etc/security/limits.conf file and impose then process limitations. Example of /etc/security/limits.conf file A soft limit is like a warning and hard limit […]

, , ,

[Cron] How-to

Exécution tous les jours à 22h00 d’une commande et rediriger les infos dans sauvegarde.log : Exécution d’une commande toutes les 6 heures : Exécution d’une commande toute les heures : Exécution d’une commande toutes les minutes uniquement les lundis : Exécution d’une commande une fois par an à une heure précise (ici le 25 décembre […]

,

[How-to] Oracle Tablespaces

TEMP tablespace List current files : Remove file : Add new file : Create new temp tablespacce Change temp tablespace Drop old temp tablespace Drop tablespace even if file is missing If the file is not present anymore, use this command before DROP statement : Drop missing tablespace file Shutdown DB : Start mounting : […]

, ,

Previous Posts Next posts