Extract sub-array from an array in javascript
You can use the slice() method in JavaScript to get a sub-array from an array. Here’s a simple example: In…
Configure Git Proxy With Socks5
To configure Git to use a SOCKS proxy, you use the http.proxy and https.proxy configuration options. Here is how you…
Setup ngx-translate in angular
In angular typescript, we can use ngx-translate for i18n, and ngx-translate-extract for extracting keys to generate multiple language file. i…
Configure Monaco Editor Language and Theme in Angular Typescript
In angular typescript environment, the vscode editor is integrated by ngx-monaco-editor, for how to install ngx-monaco-editor on angular typescript environment,…
Install and Setup Docker On CentOS Stream 8
Install and Setup Docker On CentOS Stream 8, the docker repo should be installed first, and then install it by…
Intergrate vscode editor in angular
To intergrate vscode editor in angular 13 typescript and above, ngx monaco editor should be installed. The following steps described…
Spring WebFlux Databuffer Limit
The default databuffer limit size in spring webflux is 262144(256K) bytes, and it is hardcode in Base class(BaseDefaultCodecs), When you…
Understanding sync.Map in Go
As we know that go provides a type of map that allows us to store key-value pair data, but if…
Kubernetes configmap guide
A ConfigMap is a Kubernetes resource that allows you to store configuration data as key-value pairs. You can use ConfigMaps…
Happy New Year
Happy New Year! The Chinese new year is comming soon(The day after tomorrow). Wish you all who comes here: The…
Php configure memcached in centos8
Install and configure php and memcached plugin for wordpress setup on centos8 I use pecl to manually install memcached plugin.…
Kubernetes Pod Resource Usage Checking
There are so many ways to check pod resource usage such as cpu and memory in kubernetes, kubectl top command…
Kubernetes copy file from pod to local
Kubernetes client kubectl provides cp sub command to copy file from pod to local filesystem or from local filesystem to…
Troubleshooting kubernetes pod get stuck in Terminating status
Pods in Kubernetes can sometimes get stuck in the “Terminating” status, which means that they are being terminated but have…
Kubernetes secret decode
In Kubernetes, a secret is a way to store sensitive information, such as passwords, tokens, or keys, that can be…
Re-run A Kubernetes Scheduled Job manually
A Kubernetes Scheduled Job is designed to run automatically based on a schedule defined in the cron format. However, there…
Kubernetes Image update/pull policy
In Kubernetes, the image pull policy is a configuration option that determines how the system should handle pulling container images.…
Add External Image Registry in OpenShift
There are serval ways to connect an external image registry (such as harbor) to your openshift environments. In installation phase,…
Run multiple commands in kubernetes
This article will describe how to run multiple commands on container startup phase in kubernetes. Kubernetes provides several ways to…
OpenShift 4 Internal Image Registry Configuration
By default, when you install your openshift 4 cluster on bare metal manually, the internal image registry is not available,…
Keep Container Running On Kubernetes
When you trying to run a simple container with shell (/bin/bash) on a Kubernetes cluster, the container exits when its…
Setup NFS storage class in OpenShift 4
NFS storageclass is an easy to use storage option for kubernetes and openshift platform. I will describe how to setup…
OpenShift 4.10 high available cluster installation Tutorial
In this tutorial, i will describe how to install and setup an openshift container platform (OCP) 4.10 cluster with high…
Nginx setup and configuration guide
Nginx is a complex and rubust software, for this guide, we only care about how to setup it for layer7…