Archives de l’auteur : davidhxxx

minikube

Minikube installation on Windows wsl Ubuntu curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 sudo install minikube-linux-amd64 /usr/local/bin/minikube Start your cluster minikube start –mount=true –mount-string= »/minikube-volume-abs:/minikube-volume-mount » A more complete command to start a cluster with multiple options start-minikube.sh #!/bin/bash minikube start –static-ip 192.168.49.2 –nodes 1 –insecure-registry … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

microk8s

Installation commands Enable systemd by running the following command in the WSL terminal: echo -e « [boot]\nsystemd=true » | sudo tee /etc/wsl.conf Install the application: sudo snap install microk8s –classic Uninstallation commands sudo snap remove microk8s .bashrc setup alias kubectl=’microk8s kubectl’ source … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Ansible inventory

inventory overview It is a file (pseudo ini or yaml) that define hosts that Ansible may target. Main declaration rules  – Hosts may be specified in a group or not. – A even host may be specified in multiple groups. … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Ansible installation and configuration

Distributions and ways to install Two distributions : – a community package called ansible = Ansible language and runtime + many collections (Ansible extensions) – a minimalist language called ansible-core (called ansible-base in version 2.10) = Ansible language and runtime … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

wrk – HTTP benchmarking tool

Warning : WRK is great but written in C and not updated and maintained any longer for several years How to install Download a tagged version or clone the repository of the application and run the make command to build it. … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Kubernetes REST API

Two ways to use it – Use one of the official client libraries (C, dotnet, Go, Hashkell, Java, JavaScript, Perl, Python, Ruby) – Use the curl command REST API endpoint – OpenAPI V2: /openapi/v2 endpoint – OpenAPI V3: /openapi/v3 endpoint … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Prometheus with Docker or Kubernetes

Prometheus config Example Here is a sample configuration that defines several jobs. All don’t require credentials but workers that require it. # my global config global: scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

ELK with Kubernetes

Configuration sample Kubernetes fields added by the kubernetes processor kubernetes.pod.name type: keyword   kubernetes.pod.uid type: keyword   kubernetes.pod.ip type: ip   kubernetes.namespace type: keyword   kubernetes.node.name type: keyword   kubernetes.node.hostname (Kubernetes hostname as reported by the node’s kernel) type: keyword … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Docker and K8s Logs

Docker logging drivers How to know the default Logging driver ? docker info –format ‘{{.LoggingDriver}}’ The default : the json-file logging driver Each Docker daemon has a default logging driver, which each container uses unless you configure it to use … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Kubernetes configuration/administration common issues and questions

kubelet GC deletes very frequently unused docker images/containers Symptoms : kubelet logs show messages such as : kubelet[5105]: I0428 15:55:45.440934 5105 image_gc_manager.go:305] [imageGCManager]: Disk usage on image filesystem is at 86% which is over the high threshold (85%). Trying to free … Continuer la lecture

Publié dans Non classé | Laisser un commentaire