惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
SecWiki News
SecWiki News
爱范儿
爱范儿
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
S
SegmentFault 最新的问题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
V
V2EX
博客园 - 司徒正美
WordPress大学
WordPress大学
Y
Y Combinator Blog
B
Blog RSS Feed
H
Help Net Security
C
Check Point Blog
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
Application and Cybersecurity Blog
Application and Cybersecurity Blog
B
Blog
Help Net Security
Help Net Security
罗磊的独立博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
H
Heimdal Security Blog
大猫的无限游戏
大猫的无限游戏
Security Latest
Security Latest
Cisco Talos Blog
Cisco Talos Blog
Blog — PlanetScale
Blog — PlanetScale
A
Arctic Wolf
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
The Register - Security
The Register - Security
F
Fortinet All Blogs
S
Securelist
Microsoft Security Blog
Microsoft Security Blog
O
OpenAI News
P
Privacy & Cybersecurity Law Blog
C
Cybersecurity and Infrastructure Security Agency CISA
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
AWS News Blog
AWS News Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
T
Threat Research - Cisco Blogs
Martin Fowler
Martin Fowler
D
Docker
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events

博客园 - 不懂123

kafka添加用户管理认证 nodejs升级管理 elastic定时清除索引数据 sftp集成设置 kafka3.9集群部署 nginx扩展编译模块 rancher kafka部署 JumpServer使用示例 rancher kafka多监听配置 jenkins远程动态打包镜像 docker镜像仓库清理迁移 elastic单机多节点集群搭建 fastdfs编译升降版本 监控系统搭建集成实例 linux使用ssh免密连接windows主机 jenkins pipeline搭建 docker跨平台构建镜像 fastdfs系统异常 mongodb集群用户管理
rancher服务启动异常
不懂123 · 2025-09-11 · via 博客园 - 不懂123

异常现象1

              QQ_1757464856044

              这两个服务一直处于重启当中,查看相关日志

              kubectl logs -f kafka-kjmvb -n xinchuang-test -c container-0 --previous

             QQ_1757464910660

              QQ_1757464985845

              日志中也没有明显的异常提示,只是一直不断的重启

排查步骤

             QQ_1757465135863

            QQ_1757465329697

             QQ_1757465382830

               查看主机内存

           QQ_1757465433629

      由于主机内存严重不足,导致部署的服务Pod一启动就被系统进行了OOM.需要对主机内存进行扩容.

异常现象2

          服务启动时候提示没有权限修改对应的配置文件

        QQ_1757557724985

         QQ_1757557748895

        排除步骤

          QQ_1757558003466

           QQ_1757558098774

         在容器启动的时候可以通过设置参数的方式手动指定启动用户的id来提升访问权限的问题

TLog连接ES

              QQ_1757640084168

             QQ_1757640118169

  tlog配置

             tlog异常现象 写入es失败

           QQ_1757640491252

           解决方案

          QQ_1757640367402

             用户名,密码,证书必须配置正确,而且检查成功 

提取configmap的配置文件内容

#! /bin/bash

ns=$1
jobname=$2
echo $ns

rm -fr /home/admin/yamls/*
cd /home/admin/yamls/ && kubectl get configmap -n henan-test --no-headers | grep -v kube-root-ca.crt | awk '{print $1}' | xargs -I {} sh -c 'kubectl get configmap {} -n henan-test -o yaml | yq eval ".data" > {}.yml'
cd /home/admin/yamls/ && ls /home/admin/yamls/ | xargs -I {} sed -i '1d' {}
cd /home/admin/yamls/ && find /home/admin/yamls/ -maxdepth 1 ! -name 'dataprocess.properties.yml' -type f -exec sh -c 'yq -P "$0" > "${0%.*}.yaml"' {} \;
cd /home/admin/yamls/ && sed -i 's/^[[:blank:]]*//' /home/admin/yamls/dataprocess.properties.yml
cd /home/admin/yamls/ && mv /home/admin/yamls/dataprocess.properties.yml /home/admin/yamls/dataprocess.properties.yaml
rm -fr /home/admin/yamls/*.yml
scp -r /home/admin/yamls/ admin@192.168.30.218:/home/admin/one-deploy/$jobname

yamlupload.sh

      stage("uploadyaml"){
         steps {
            script {
              sh "ssh admin@192.168.30.174 'sudo sh /home/admin/shell/yamlupload.sh ${namespaces} ${jobname}'"
            }
         }
      }

pipeline

   QQ_1757676056877

      QQ_1757677471836

    把configmap资源中的配置数据提取成可用的配置文件