当前位置:网站首页>Helm chart for Kubernetes
Helm chart for Kubernetes
2022-07-29 05:08:00 【Trc0g】
veinmind-runner镜像定时启动脚本,可使用crontab语法配置定时执行扫描镜像
安装
- 确定本地运行Kubernetes服务
[[email protected] veinmind]# kubectl get pods -n kube-systemNAME READY STATUS RESTARTS AGEcalico-kube-controllers-6d75fbc96d-2d67s 1/1 Running 0 48mcalico-node-47fzd 1/1 Running 0 48mcalico-typha-6576ff658-xsbbv 1/1 Running 0 48m......- 安装helm
wget https://get.helm.sh/helm-v3.9.0-linux-amd64.tar.gztar -zxvf helm-v3.9.0-linux-amd64.tar.gzmv linux-amd64/helm /usr/local/bin/helm[[email protected] veinmind]# helmThe Kubernetes package managerCommon actions for Helm:- helm search: search for charts- helm pull: download a chart to your local directory to view- helm install: upload the chart to Kubernetes- helm list: list releases of charts- 进入
helm_chart\veinmind\:
# 安装[[email protected] veinmind]# helm install veinmind .# 卸载[[email protected] veinmind]# helm uninstall veinmind配置解析
项目主要配置信息位于values.yaml:
jobs: ### REQUIRED ### - name: veinmind-runner image: repository: veinmind/veinmind-runner tag: latest imagePullPolicy: IfNotPresent schedule: "0 */8 * * *" ### 扫描周期配置 failedJobsHistoryLimit: 1 successfulJobsHistoryLimit: 3 concurrencyPolicy: Allow restartPolicy: OnFailure ### OPTIONAL ### command: ["/tool/entrypoint.sh"] ### 程序入口点 args: - "scan-host" ### 运行参数 nodeSelector: ### 节点选择,可以依据标签将该任务推送到节点 类似的还有 nodeName,依据名称选择节点 beta.kubernetes.io/arch: amd64 resources: ### 资源配置,1000m == 1 个 CPU 单元,相当于1 个物理 CPU 核,或1 个虚拟核 limits: cpu: 1000m memory: 256Mi requests: cpu: 1000m memory: 256Mi volumes: - name: files-mount hostPath: path: / - name: sock-path hostPath: path: /var/run/docker.sock volumeMounts: - name: files-mount mountPath: /host - name: sock-path mountPath: /var/run/docker.sock获取节点标签:
[[email protected] veinmind]# kubectl get nodes --show-labels NAME STATUS ROLES AGE VERSION LABELS192.168.136.146 Ready control-plane,etcd,master,worker 12h v1.22.10 beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=192.168.136.146,kubernetes.io/os=linux,node-role.kubernetes.io/control-plane=,node-role.kubernetes.io/etcd=,node-role.kubernetes.io/master=,node-role.kubernetes.io/worker=,node.kubernetes.io/exclude-from-external-load-balancers=运行截图


扫描结果请查询日志 
边栏推荐
- The method and detailed code of automatically pop-up and QQ group when players visit the website
- Arfoundation starts from scratch 3- create an arfoundation project
- 什么是_GLIBCXX_VISIBILITY(default)
- 开区网站打开自动播放音乐的添加跟修改教程
- The person who goes to and from work on time and never wants to work overtime has been promoted in front of me
- 网安学习-内网安全1
- webgl1.0下texture2D和texture2DProj区别
- Pivot table of odoo development tutorial
- Open the tutorial of adding and modifying automatically playing music on the open zone website
- Rolabelimg to data format data
猜你喜欢

Young freshmen yearn for more open source | here comes the escape guide from open source to employment!

Jackson解析JSON详细教程

Unity3d - the object is too far away to see

ARFoundation从零开始9-AR锚点(AR Anchor)

The person who goes to and from work on time and never wants to work overtime has been promoted in front of me

QtCreator+CMake编译器设置

法线可视化

Understand activity workflow

Modification of annotation based three-tier project and the way of adding package scanning

三层项目的架构分析及构造方法的参数名称注入
随机推荐
自贸经济中架起的“隐形桥梁”:国货精品与中国AI力量
Rimworld通过SteamCMD上传创意工坊的方法
Getting started with arfoundation tutorial 10- plane detection and placement
365天挑战LeetCode1000题——Day 037 元素和小于等于阈值的正方形的最大边长 + 满足条件的子序列数目
scikit-learn——机器学习应用开发的步骤和理解
开区网站打开自动播放音乐的添加跟修改教程
ARFoundation从零开始5-AR图像跟踪
关于thymeleaf的配置与使用
Deadlock analysis using jstack, jconsole, and jvisualvm
WDDM学习
Unity3d - the object is too far away to see
Pivot table of odoo development tutorial
C 语言手写 QQ-AI 版
ARFoundation从零开始9-AR锚点(AR Anchor)
最新坦克大战2022-全程开发笔记-3
Create a mindscore environment in modelars, install mindvision, and conduct in-depth learning and training (Huawei)
C language handwritten qq-ai version
Qt版的贪食蛇游戏项目
小鲁客栈---预告篇
7.3-function-templates