摘要: 配置文件 [req] req_extensions = v3_req distinguished_name = req_distinguished_name [req_distinguished_name] [ v3_req ] basicConstraints = CA:FALSE keyUsag 阅读全文
posted @ 2023-03-16 09:40 崛起的麋鹿 阅读(96) 评论(0) 推荐(0)
摘要: 配置文件 cat deploy ## OS 选择操作系统版本: centos 或者 kylin 或者 openeuler # 只支持 centos-x86 kylin-arm kylin-amd openeuler-arm OS="centos" ## harbor 选择harbor仓库,设置账号以 阅读全文
posted @ 2023-03-16 09:29 崛起的麋鹿 阅读(84) 评论(0) 推荐(0)
摘要: apiVersion: apps/v1 kind: Deployment metadata: name: health-check-deployment labels: app: health-check spec: replicas: 1 selector: matchLabels: app: h 阅读全文
posted @ 2023-03-03 15:01 崛起的麋鹿 阅读(29) 评论(0) 推荐(0)
摘要: du -h --max-depth=1 find . -name -name "*.log*" -type f -mtime +15 -exec rm -f {} \; 阅读全文
posted @ 2023-02-28 17:56 崛起的麋鹿 阅读(21) 评论(0) 推荐(0)
摘要: 实现免密登录 vim ./passwd passwd="xxxxxxxx" #!/bin/bash source ./passwd function secret_free_login(){ ls /root/.ssh/id_rsa.pub &> /dev/null if [ $? -eq 0 ]; 阅读全文
posted @ 2023-02-28 17:47 崛起的麋鹿 阅读(32) 评论(0) 推荐(0)
摘要: git init #初始化仓库 git remote add origin URL #设置origin ,推送代码时需要git checkout dev #切换分支到dev git add . git commit -m "add xxx" git push -u origin master #推送 阅读全文
posted @ 2023-02-28 17:38 崛起的麋鹿 阅读(21) 评论(0) 推荐(0)
摘要: for 循环简单实现 #!/bin/bash cd /root/health-check/ > /tmp/bomp-check-result.json for i in $(ls ./check*.sh) do bash ./$i done 通过端口判断kubelet是否存活 #!/bin/bash 阅读全文
posted @ 2023-02-28 17:24 崛起的麋鹿 阅读(25) 评论(0) 推荐(0)
摘要: 博主讲的很细,适合新手入门,非常推荐大家去看看 原文博客:朱双印 阅读全文
posted @ 2023-02-28 17:13 崛起的麋鹿 阅读(14) 评论(0) 推荐(0)
摘要: 简单使用了hostPath,去做一些目录以及二进制的映射 apiVersion: v1 kind: Pod metadata: name: health-check labels: app: health-check spec: nodeName: k8s-master01 containers: 阅读全文
posted @ 2023-02-28 17:09 崛起的麋鹿 阅读(52) 评论(0) 推荐(0)
摘要: 前文说明: 基于K8S官网对RBAC的介绍以及自己的一些理解进行一些记录 RBAC介绍 • RBAC 鉴权机制使用 rbac.authorization.k8s.io API 组来驱动鉴权决定, 允许你通过 Kubernetes API 动态配置策略 • 要启用 RBAC,apiserver必须配置 阅读全文
posted @ 2023-02-22 14:18 崛起的麋鹿 阅读(46) 评论(3) 推荐(0)