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


扫描结果请查询日志 
边栏推荐
- Google GTEST event mechanism
- 网安学习-内网安全1
- 6.3 references
- [file download] easyexcel quick start
- The latest tank battle 2022 full development notes-1
- 365天挑战LeetCode1000题——Day 040 设计跳表 + 避免洪水泛滥 + 查找大小为 M 的最新分组 + 销售价值减少的颜色球
- ARFoundation从零开始3-创建ARFoundation项目
- The method and detailed code of automatically pop-up and QQ group when players visit the website
- Self join and joint query of MySQL
- ARFoundation从零开始5-AR图像跟踪
猜你喜欢

ARFoundation从零开始3-创建ARFoundation项目

Adb常用命令列表

Database course design of online assistant teaching platform for high school chemistry

Activity workflow table structure learning

01-01-osg GL3 环境搭建

This article takes you to understand the implementation of surround notification @around and final notification @after

学习数据库的第一个程序

Numpy Foundation

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

AUTOSAR从入门到精通100讲(七十八)-AUTOSAR-DEM模块
随机推荐
7.2-function-overloading
7.3-function-templates
SM integration is as simple as before, and the steps are clear (detailed)
OCCT学习002-----环境搭建
Jackson解析JSON详细教程
roLabelImg转DATO格式数据
Xiaobai high salary shortcut Qt development game Snake
tmux随笔
webgl1.0下texture2D和texture2DProj区别
Understand activity workflow
Pytorch learning notes
AUTOSAR from introduction to proficiency 100 lectures (78) -autosar-dem module
基于注解的三层项目的改造及添加包扫描的方式
C how to realize simple factory mode
Do you remember the process analysis and function implementation of post notification?
Rolabelimg to data format data
Qml类型:State 状态
Arfoundation starts from scratch 3- create an arfoundation project
QML定制TabBar
MySQL many to many relationship, grouping and splicing to query multiple data to one data