Admnistration See what is currently installed helm list -A NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION nesux3 default 1 2022-08-12 20:01:16.0982324 +0200 CEST deployed nexus3-1.0.6 3.37.3 Install/Uninstall helm status nesux3 helm uninstall nesux3 helm install nexus3 helm history nexus3 # work even if...
Connexion to k8s cluster Kubeconfig Define KUBECONFIG in your profile # Default one KUBECONFIG=~/.kube/config # Several context - to keep splited KUBECONFIG=~/.kube/k3sup-lab:~/.kube/k3s-dev # Or can be specified in command kubectl get pods --kubeconfig=admin-kube-config View and Set kubectl config view kubectl config...
Troubleshoot DNS vi dns.yml apiVersion: v1 kind: Pod metadata: name: dnsutils namespace: default spec: containers: - name: dnsutils image: registry.k8s.io/e2e-test-images/jessie-dnsutils:1.3 command: - sleep - "infinity" imagePullPolicy: IfNotPresent restartPolicy: Always deploy dnsutils k apply -f dns.yml...
A list of nice findings for Kubernetes List all images in Helm chart images=$(helm template -g $helm |yq -N '..|.image? | select(. == "*" and . != null)'|sort|uniq|grep ":"|egrep -v '*:[[:blank:]]' || echo "") upload images listed in an Helm chart load_helm_images(){ # look in helm charts for helm in $(ls...
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 โ...