Skip to content

Tag «Kubernetes»

how to delete orphaned pod in Kubernetes

kubernetes

Problem description The office building was powered off last Friday. when I came back on Monday, I found that many pods were in the same state Terminating. after investigation, it was because some nodes in the Kubernetes cluster in the testing environment were PCs, and they needed to be manually turned on after power outage. …

1 min to get pods limits and requests with kubectl

kubernetes

Requirement I’ve asked to list the limits and requests for all pods in a specific namespace in k8s. Implementation To achieve this, you can use the kubectl command to show a single pod's limits and requests. all kubectl commands are listed on the Kubernetes website. For printing out the limits and requests for all pods, …

how to fix PLEG problem in Kubernetes

kubernetes 1

I’ve got kubelet message on our Kubernetes, the error message like below. you can get the message from the rancher UI if using it. Solution According to the IBM document, this issue is caused by slow interaction between kubelet and Docker. the solution is to increase house-keeping interval, house-keeping is the kubelet evaluates eviction thresholds …

Build Nacos-peer-finder-plugin for ARM64 architecture

nacos

In the previous article, we have learnt how to install Nacos on the single node of the Kubernetes environment, which was an x86 platform. but with the architecture and ecosystem of ARM is getting better now, deploying applications on the arm64 environment is becoming popular. When deploying Nacos on the arm64 server, I didn’t find …

Installing Nacos on the Kubernetes

nacos

In this post, I will describe how to install Nacos on the Kubernetes environment. This post requires you to have some basic Kubernetes knowledge and is not suitable for every beginner. What is Nacos Nacos is an open-source software provided by Alibaba, which can help you discover, configure and manage your microservices. it supports two …

How to set kong timeout in 5 Mins

logo color 1

Kong API Gateway is using its default timeout of 1 minute. it’s not long enough sometimes. We want to set the customized timeout value for upstream services. we are using Kong to replace the default Nginx controller in our Kubernetes environment. Background: CentOS 7.9 x64; Our Kubernetes version: 1.17; Kong version 2.3.3 Create a Kong …

How to fix PVC deleting problem in Kubernetes

containerd

The issue Whilst working on a Kubernetes project for a customer, the onsite support reported he failed to run pod on the cluster. after checking the pod log, the PVC didn’t exist, however, onsite support insisted he has applied the FTP PVC YAML file. After investigating, I noticed that one PVC was stuck in “terminating” …

Kubernetes node no internal IP problem

containerd

The Kubernetes was not able to work perfectly after being deployed with the RKE tool. it has no internal IP showing when performed Some pods were running but no pod IP, some pods kept restarting, like CoreDNS, Nginx-ingress-controller and few logs were printed out. At first, I thought there might be something wrong in the …

MySQL CronJob backup file

mysql

You might guess from the article title, we launched MySQL in the Kubernetes. Although some people DO NOT suggest run MySQL in the Kubernetes instead of run as a standalone because of IO, performance, and reliability, we still run it as Statefulset in the Kubernetes. it looks good right now and hasn’t encountered any problems. …

Configure Containerd Private Repository

containerd

As Kubernetes is deprecating docker as container runtime after version 1.20, we decided to choose Containerd as our Kubernetes runtime. Our Kubernetes cluster is running on the Aliyun Cloud, with 3 master nodes and 6 worker nodes. This post documented how to configure a private repository in Containerd. compared with Docker, I feel that client …