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


扫描结果请查询日志 
边栏推荐
猜你喜欢

C语言用指向指针的指针对n个整数排序

QT系列---安装

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

向往的开源之多YOUNG新生 | 从开源到就业的避坑指南来啦!

Unity metaverse (III), protobuf & socket realize multi person online

AUTOSAR从入门到精通100讲(七十八)-AUTOSAR-DEM模块
![[2022 freshmen learning] key points of the third week](/img/21/6a2c4f7e9114260797497d99b75cd6.png)
[2022 freshmen learning] key points of the third week

QtCreator+CMake编译器设置

C语言求字符串的长度

scikit-learn——机器学习应用开发的步骤和理解
随机推荐
Jackson parsing JSON detailed tutorial
那个准时上下班,从不愿意加班加点的人,在我前面升职了...
法线可视化
AI应用第一课:C语言支付宝刷脸登录
tmux随笔
Deadlock analysis using jstack, jconsole, and jvisualvm
Is Huatai Securities an AA level securities company? How about this company? Is it safe to open an account?
Apache POI实现Excel导入读取数据和写入数据并导出
SM整合原来这么简单,步骤清晰(详细)
Mysql的自连接和联合查询
时间序列分析的表示学习时代来了?
Pytorch learning notes
Cache penetration, cache breakdown, cache avalanche and Solutions
关于thymeleaf的配置与使用
Network Security Learning - Intranet Security 1
Mysql把查询到的结果集按指定顺寻进行排序
开区网站打开自动播放音乐的添加跟修改教程
The person who goes to and from work on time and never wants to work overtime has been promoted in front of me
Adb常用命令列表
[2022 freshmen learning] key points of the third week