This is somes personnals documentation build all long my career. You will find it only in the english version.

Sections

Some time ago, I made a small shell script to handle Vault on a cluster kubernetes. For documentation purpose. Install Vault with helm #!/bin/bash ## Variables DIRNAME=$(dirname $0) DEFAULT_VALUE="vault/values-override.yaml" NewAdminPasswd="PASSWORD" PRIVATE_REGISTRY_USER="registry-admin"...

Specific to RHEL # Create a trust zone for the two interconnect sudo firewall-cmd --permanent --zone=trusted --add-source=10.42.0.0/16 #pods sudo firewall-cmd --permanent --zone=trusted --add-source=10.43.0.0/16 #services sudo firewall-cmd --reload sudo firewall-cmd --list-all-zones # on Master sudo rm -f...

Operators have 3 kinds : go, ansible, helm. ## Init an Ansible project operator-sdk init --plugins=ansible --domain example.org --owner "Your name" ## Command above will create a structure like: netbox-operator โ”œโ”€โ”€ Dockerfile โ”œโ”€โ”€ Makefile โ”œโ”€โ”€ PROJECT โ”œโ”€โ”€ config โ”‚ย โ”œโ”€โ”€ crd โ”‚ย โ”œโ”€โ”€ default โ”‚ย โ”œโ”€โ”€ manager โ”‚ย โ”œโ”€โ”€ manifests โ”‚...

Deploy a Quay.io / Mirror-registry on container Nothing original, it just the documentation of redhat, but can be usefull to kickstart a registry. mirror="https://mirror.openshift.com/pub/openshift-v4/clients" wget ${mirror}/mirror-registry/latest/mirror-registry.tar.gz tar zxvf mirror-registry.tar.gz sudo...

GIT is a distributed version control system that was created by Linus Torvalds, the mastermind of Linux itself. It was designed to be a superior version control system to those that were readily available, the two most common of these being CVS and Subversion (SVN). Whereas CVS and SVN use the Client/Server model for...

Most usefull shortcut Ctrl + r : Search and reverse. (ctrl+r pour remonter lโ€™history). Ctrl + l : Clear the screen (instead to use โ€œclearโ€ command). Ctrl + p : Repeat last command. Ctrl + x + Ctrl + e : Edit the current command on an external editor. (Need to define export EDITOR=vim ). Ctrl + shift + v : Copy / paste...

Trust a CA on Linux host # [RHEL] RootCA from DC need to be installed on host: cp my-domain-issuing.crt /etc/pki/ca-trust/source/anchors/my_domain_issuing.crt cp my-domain-rootca.crt /etc/pki/ca-trust/source/anchors/my_domain_rootca.crt update-ca-trust extract # [Ubuntu] sudo apt-get install -y ca-certificates sudo cp...

Package with pip3 pip3 freeze netaddr > requirements.txt pip3 download -r requirements.txt -d wheel mv requirements.txt wheel tar -zcf wheelhouse.tar.gz wheel tar -zxf wheelhouse.tar.gz pip3 install -r wheel/requirements.txt --no-index --find-links wheel Package with Poetry curl -sSL https://install.python-poetry.org...