Skip to content

How to Setup and Send Windows and Linux logs to CloudWatch

image 13

Yesterday, I assisted my buddy in resolving a problem related to log collection. She was trying to send Windows logs to CloudWatch but kept encountering an error. Using this as an opportunity, I’d like to guide you through the process of sending Windows and Linux logs to CloudWatch. AWS CloudWatch monitors AWS resources and the …

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. …

Configure two NICs on different subnets for CentOS 7

1280px Centos logo light.svg

My colleague configured two network interfaces with different subnets on CentOS 7 Server, one network interface was subnet 192.168.12.0/24, another was 192.168.200.0/24. Only subnet 192.168.12.0/24 could be reachable. if disabled one network interface, another was working immediately. He tested on Windows 10 with the same subnets, both network interfaces was working well and was able …

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 block Log4shell attack using Kong plugin

log4j

if you’ve read the news recently, you must hear about the Log4Shell zero-day in log4j, this vulnerability affects at least millions of computer, system, and java applications. I won’t elaborate details here, for more information about this, you can check out from here. In this article, I will be talking about how to add kong …

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 …

Replicate files from Windows to FreeNAS

rsync

Rsync is a remote and local synchronization tool, it uses an algorithm that minimizes the amount of data copied by only moving the portions of files that have changed. it is a built-in tool in Linux. To use it in Windows, either install WSL or download third-party rsync. In this post, I will demo how to …

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 …