Operations
Deploying Jumpserver as a Bastion Host on Kubernetes
· β˜• 2 min read
1. Deploying Jumpserver You need a StorageClass ready in advance to store Jumpserver’s data. Besides the database mentioned below, each component β€” jms-core, jms-web, jms-koko, jms-lion, jms-chen β€” also needs a PV for storage. 1.1 Deploying MySQL Refer to https://github.com/shaowenchen/ops-hub/blob/main/database/mysql8.yaml to deploy MySQL. You need to adjust the StorageClass field

Using the Ops Project to View and Monitor Cluster Events
· β˜• 3 min read
https://github.com/shaowenchen/ops 1. Alerting on Kubernetes Cluster Events Monitor specified keywords 1 2 3 4 5 6 7 8 9 10 11 apiVersion: crd.chenshaowen.com/v1 kind: EventHooks metadata: name: kube-pod-falid namespace: ops-system spec: type: xiezuo url: https://xxx.com/api/v1/webhook/send?key=xxx subject: "ops.clusters.*.namespaces.*.pods.*.event" keywords: - failed A simple configuration like this yields a large number of related alerts.

Using Fluid to Access S3 Storage and Performance Testing
· β˜• 2 min read
1. Jindo Mounting S3 Set the environment variables 1 2 3 4 export ENDPOINT=obs.ap-southeast-3.myhuaweicloud.com export BUCKET= export AK= export SK= Create the credentials 1 2 3 4 5 6 7 8 9 10 kubectl apply -f - <<EOF apiVersion: v1 kind: Secret metadata: name: mys3secret type: Opaque stringData: fs.s3.accessKeyId: ${AK} fs.

Switch to a Specific Kernel Version on Ubuntu
· β˜• 3 min read
1. Installing a New Kernel Version Installing from the apt repositories is recommended, so you avoid installing an incompatible kernel version. 1.1 Installing from the Repository List the available versions 1 2 3 4 apt list linux-headers-5.15.*-*-generic linux-image-5.15.*-*-generic linux-image-5.15.0-94-generic/focal-updates,focal-security 5.15.0-94.104~20.04.1 amd64 linux-image-5.15.0-97-generic/focal-updates,focal-security 5.15.0-97.107~20.04.1 amd64 Install the kernel 1 apt install linux-image-5.

Ops v1.0.0 Released
· β˜• 2 min read
Based on real production needs, I recently made several important updates to https://github.com/shaowenchen/ops and released version v1.0.0. Here I mainly introduce the key features of this release. 1. Support for Multi-Cluster Task Execution In practice, the recommendation is: Create the hosts of the current cluster as Hosts You can create multiple Clusters, and the Cluster objects you own are the clusters under management Task and Pipeline objects are automatically synchronized to all Clusters under the cluster, with no manual trigger required.