kubernetes

kubernetes cluster – only crictl can actually see containers (containers assets)

kubernetes cluster – only crictl can actually see containers (containers assets) In my kubernetes (v1.28.7), docker uses containerd as underlying container management engine. (I guess I can call it Container Runtime Interface – CRI? ). This is how I assume that (look at the last line and scroll all the way to the right): lab@worker01:~$ …

Total answers: 1

what does {} in containers section in kubernetes mean?

what does {} in containers section in kubernetes mean? I want to know what resources: {} in pod.spec.containers.resources in Kubernetes means? Asked By: Emad Khavaninzadeh || Source You can get documentation using kubectl for the fields of Kubernetes resources. For example: $ kubectl explain pod.spec.containers.resources KIND: Pod VERSION: v1 FIELD: resources <ResourceRequirements> DESCRIPTION: Compute Resources …

Total answers: 1

Kubernetes cannot join server cluster

Kubernetes cannot join server cluster I have two OpenSUSE Micro Leap 5.5 VMs in the same network called m0.k8b.intranet.domain and m1.k8b.intranet.domain. Both are clean Preconfigured images from https://get.opensuse.org/leapmicro/5.5/. The two virtual machines have installed containerd, kubeadm, kubelet, but kubectl only in m0 like in https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ and https://blog.kubesimplify.com/how-to-install-a-kubernetes-cluster-with-kubeadm-containerd-and-cilium-a-hands-on-guide. In general the https://blog.kubesimplify.com/how-to-install-a-kubernetes-cluster-with-kubeadm-containerd-and-cilium-a-hands-on-guide was followed with m0 …

Total answers: 1

[microstack][k8s][calico] Not ping through between pods across different subnets in k8s

[microstack][k8s][calico] Not ping through between pods across different subnets in k8s Two vms created from microstack for deploying k8s with calico CNI VM1(extest-1): internal:192.168.122.204/external:128.224.157.145 VM1(extest-2): internal:192.168.122.72/external:128.224.157.139 calico config: ubuntu@extest-1:~$ cat custom-resources.yaml # This section includes base Calico installation configuration. # For more information, see: https://docs.tigera.io/calico/latest/reference/installation/api#operator.tigera.io/v1.Installation apiVersion: operator.tigera.io/v1 kind: Installation metadata: name: default spec: # Configures …

Total answers: 1

Mount a filesystem in a K8S pod without privileged

Mount a filesystem in a K8S pod without privileged I have a K8S deployment loading a volume as raw block (through volumeDevices): apiVersion: apps/v1 kind: Deployment … spec: replicas: 1 … containers: – name: somepod image: ubuntu:latest command: ["sh","-c", "–"] args: ["mount /dev/block /data && while true; do sleep 1000000; done"] securityContext: privileged: true volumeDevices: …

Total answers: 1

Kubernetes Namespace Stuck in 'Terminating'

Kubernetes Namespace Stuck in 'Terminating' I’m encountering an issue where a Kubernetes namespace is stuck in the ‘Terminating’ state. Running kubectl get ns cattle-monitoring-system -o json|jq produces error messages related to custom.metrics.k8s.io/v1beta1 and shows a DiscoveryFailed condition in the namespace status: E1213 08:02:39.979034 953148 memcache.go:287] couldn’t get resource list for custom.metrics.k8s.io/v1beta1: the server is currently …

Total answers: 1

How time zone variable for Kubernetes should look like?

How time zone variable for Kubernetes should look like? I am European export BOOTSTRAP_TIMEZONE="UTC +2" I can not check, something is wrong with Github right now. If that is not right what should I change? Asked By: Richard Rublev || Source It’s quite common for servers to be set to UTC in Europe. But not …

Total answers: 1

do-release-upgrade fails because of Err https://packages.cloud.google.com/apt kubernetes-xenial InRelease

do-release-upgrade fails because of Err https://packages.cloud.google.com/apt kubernetes-xenial InRelease I’m upgrading a Ubuntu 18.04 system. The command sudo do-release-upgrade fails with the error below. This system was a k8s master, but I did sudo apt purge kubeadm kubectl kubelet. Why is it still looking to upgrade k8s? The following signatures couldn’t be verified because the public …

Total answers: 1

How can I install docker-ce alongside kubernetes on debian when using containerd?

How can I install docker-ce alongside kubernetes on debian when using containerd? debian/11, kubernetes/1.26.1 I have a Debian 11 host running as the control plane node for a Kubernetes deployment. This deployment uses containerd as the container engine. I’d like to install docker-ce on that host. When I try to do so, apt wants to …

Total answers: 1

Microk8s Traefik Dashboard

Microk8s Traefik Dashboard I have set up a microk8s one node cluster as a test and installed and configured metalLB as a load-balancer alongside Traefik. It is working because when I set up an ingress router to whoami, it works perfectly fine. However, when setting up an ingress route to the Traefik dashboard, the page …

Total answers: 1

What is the net.bridge.bridge-nf-call-iptables kernel parameter?

What is the net.bridge.bridge-nf-call-iptables kernel parameter? I am following this guide of installing kubernetes with kubeadm, and as part of the installation process, I need to set the following kernel parameters in sysctl.d/99-kuvernetes-cni.conf: net.bridge.bridge-nf-call-iptables=1 net.bridge.bridge-nf-call-ip6tables=1 I know that these belong to the br_netfilter module, since I can only see them with sysctl -a after loading …

Total answers: 2

CLOSE_WAIT not visible on the kubernetes node

CLOSE_WAIT not visible on the kubernetes node Debugging a tcp: out of memory error, I found that a process (from a container) has a lot of connection on CLOSE_WAIT status aka 08 when I cat /proc/XXX/net/tcp But neither netstat or ss were showing those leaked connections. 133: 0E03540A:9D9C 804CC2AD:01BB 08 00000000:00059D7A 00:00000000 00000000 0 0 …

Total answers: 1

AWK to launch OS commands from items in a CSV file with a jump line

AWK to launch OS commands from items in a CSV file with a jump line I have a CSV file that looks like: keyuat,carsim,logs-keyuat-carsim lowuat,carsimserver,logs-lowuat-carsimserver utils,dash,logs-utils-dash utils,lifecycle,logs-utils-lifecycle utils,lifecycle-nodejs,logs-utils-lifecycle-nodejs workshop,cashier,logs-workshop-cashier workshop,jfrog-dotnet,logs-workshop-jfrog-dotnet workshop,labelsengine,logs-workshop-labelsengine Based on this CSV file, I’m trying to run two commands that must go together: oc project $1 oc patch dc $2 -p ‘{"metadata":{"labels":{"logentries":"$3"}}}’ …

Total answers: 3

Get return value from kubectl exec out into powershell script

Get return value from kubectl exec out into powershell script So I’m working on a powershell script that runs a pester test. The script connects to a Kubernetes pod with a Mongo database. The goal is to check whether or not a collection in the database is empty. I’m happy with the code up until …

Total answers: 1

Why k3s is still seeing swap on Debian Bullseye?

Why k3s is still seeing swap on Debian Bullseye? I’ve installed k3s on Debian Bullseye (on M1 Pro through qemu/UTM). k3s recommend to disable the swap. After reading the answers of the following questions: How to safely turn off swap permanently and reclaim the space? (on Debian Jessie) Disabling Swap on Debian Permanently I’ve : …

Total answers: 2

How to perform a port-forward on microk8s and send that process to the background?

How to perform a port-forward on microk8s and send that process to the background? I am trying to run this command: microk8s kubectl port-forward -n kube-system service/kubernetes-dashboard 10443:443 But the output is the following: └─[$] <> microk8s kubectl port-forward -n kube-system service/kubernetes-dashboard 10443:443 Forwarding from 127.0.0.1:10443 -> 8443 Forwarding from [::1]:10443 -> 8443 And this …

Total answers: 2

How to fix signature key?

How to fix signature key? I have tried with sudo apt-get update and sudo apt-get upgrade. And i get this error with kubernetes error: I have tried with these following commands below: sudo rm /var/lib/apt/lists/* -vf sudo apt-get clean sudo apt-get update sudo apt-get upgrade But it hasn’t worked! How can i fix this? Is …

Total answers: 1

How to convert a kubernetes style time elapsed into seconds so I can do some comparisons

How to convert a kubernetes style time elapsed into seconds so I can do some comparisons From kubectl get pods -o wide The output looks similar to some-pod-name-with-numbers-123 1/1 Running 0 6d4h 192.168.0.23 node-name-abcdeft-host.domain <none> <none> some-pod-name-with-numbers-1234 1/1 Running 0 4h38m 192.168.0.24 node-name-abcdeft-host.domain <none> <none> some-pod-name-with-numbers-1235 1/1 Running 0 2m38s 192.168.0.25 node-name-abcdeft-host.domain <none> <none> I …

Total answers: 5

canonical-kubernetes disappeared?

canonical-kubernetes disappeared? I’m following the instructions at The charmed distribution of kubernetes But seems that the kubernetes spell doesn’t exist sysop@kvmnode1:~$ sudo snap install conjure-up –classic [sudo] password di sysop: conjure-up 2.6.7-20190521.1305 from Canonical✓ installed sysop@kvmnode1:~$ conjure-up canonical-kubernetes [error] Can’t find a spell matching ‘canonical-kubernetes’ How can I install kubernetes using conjure-up? Asked By: Mirto …

Total answers: 2