当前位置:网站首页>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=运行截图


扫描结果请查询日志 
边栏推荐
- Do you remember the process analysis and function implementation of post notification?
- SQL log
- The latest tank battle 2022 full development notes-1
- 7.2-function-overloading
- Self join and joint query of MySQL
- OCCT学习002-----环境搭建
- 深度学习刷SOTA的一堆trick
- 最新坦克大战2022-全程开发笔记-3
- The representation of time series analysis: is the era of learning coming?
- 开区网站打开自动播放音乐的添加跟修改教程
猜你喜欢

2022年泰迪杯数据挖掘挑战赛C题方案及赛后总结

Xiaobai high salary shortcut Qt development game Snake

AUTOSAR从入门到精通100讲(七十八)-AUTOSAR-DEM模块

自贸经济中架起的“隐形桥梁”:国货精品与中国AI力量

使用Jstack、Jconsole和jvisualvm进行死锁分析

基于注解的三层项目的改造及添加包扫描的方式

Rimworld通过SteamCMD上传创意工坊的方法

How rimworld uploads creative workshops through steamcmd

后置通知的流程分析与功能实现有哪些内容你还记得吗?

研发效能生态完整图谱&DevOps工具选型必看
随机推荐
AttributeError: ‘module‘ object has no attribute ‘create_ connection‘
最新坦克大战2022-全程开发笔记-3
Xiaobai high salary shortcut Qt development game Snake
开区网站打开自动播放音乐的添加跟修改教程
Adb常用命令列表
AUTOSAR from introduction to proficiency 100 lectures (78) -autosar-dem module
roLabelImg转DATO格式数据
ARFoundation从零开始8-Geospatial API(地理空间)开发
Functions in MySQL statements
深度学习刷SOTA的一堆trick
The representation of time series analysis: is the era of learning coming?
Getting started with arfoundation tutorial 10- plane detection and placement
C 语言手写 QQ-AI 版
MySQL many to many relationship, grouping and splicing to query multiple data to one data
[from_bilibili_DR_CAN][【Advanced控制理论】9_状态观测器设计][学习记录]
Qml控件:ComboBox
Jackson解析JSON详细教程
webgl1.0下texture2D和texture2DProj区别
Do you remember the process analysis and function implementation of post notification?
osg进阶-序