Jib 打包镜像在k8s开启Remote Debug

Jib 打包镜像在k8s开启Remote Debug 使用 JAVA_TOOL_OPTIONS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=0.0.0.0:5005 yaml配置如下 containers: - name: container-zk image: "xxxx" ports: - name: http-8080 containerPort: 8080 protocol: TCP - name: tcp-5005 containerPort: 5005 protocol: TCP env: - name: spring.profile.active value: dev - name: JAVA_TOOL_OPTIONS value: >- -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=0.0.0.0:5005

2022-08-08 · 1 分钟 · 64 字 · xuanhr

Debian 升级内核

确认Debian版本 首先确认Debian版本,是10还是11 添加debian源时 Debian11 使用 bullseye-backports main Debian10 则使用 buster-backports main 添加Debian源 这里使用境内的加速镜像 echo "deb http://ftp.cn.debian.org/debian bullseye-backports main" > /etc/apt/sources.list.d/backports.list apt update 安装更新内核 apt -t bullseye-backports install linux-image-amd64 apt -t bullseye-backports install linux-headers-amd64 update-grub 查询内核列表 使用 dpkg --list | grep linux-image ...

2022-06-23 · 1 分钟 · 161 字 · xuanhr

Linux 去除硬盘分区格式和文件系统

安装 parted Debian apt-get install -y parted CentOS yum install -y parted 以下例子硬盘名称 /dev/vdb 在不同的环境中以实际名称为准 如果硬盘已经挂载需要先取消目录的挂载 umount /dev/vdb 进入parted命令,重置硬盘 parted /dev/vdb ...

2022-03-23 · 1 分钟 · 78 字 · xuanhr

Debian 11.2 bullseye cgroups_cpu 未开启

问题现象: 安装kubernetes 会报错: [ERROR SystemVerification]: missing required cgroups: cpu 同时发现kubectl检查cgroups时会显示 CGROUPS_CPU: missing 此时,使用docker info 会显示 WARNING: No cpu cfs quota support WARNING: No cpu cfs period support ...

2022-03-23 · 1 分钟 · 119 字 · xuanhr

Rook安装ceph 替换 kubesphere默认存储

目录 系统环境 Debian version 11.2 Docker version 20.10.10 Ceph version 16.2.7 Kubesphere version v3.2.1 Kubernetes version v1.21.5 Rook version v1.8.7 前期准备 尽量准备一个干净的系统 安装 docker 20.10.10 安装 lvm2 sudo apt-get install -y lvm2 安装流程总览 下载kubekey 安装k8s 使用k8s安装Rook 使用Rook安装ceph集群 替换k8s默认存储方式 安装kubesphere 安装kubekey export KKZONE=cn ...

2022-03-23 · 3 分钟 · 1353 字 · xuanhr