# Trivy Scanner
Trivy vulnerability scanner standalone installation.
## TL;DR;
```
$ helm install trivy . --namespace trivy --create-namespace
```
## Introduction
This chart bootstraps a Trivy deployment on a [Kubernetes](http://kubernetes.io) cluster using the
[Helm](https://helm.sh) package manager.
## Prerequisites
- Kubernetes 1.12+
- Helm 3+
## Installing from the Aqua Chart Repository
```
helm repo add aquasecurity https://aquasecurity.github.io/helm-charts/
helm repo update
helm search repo trivy
helm install my-trivy aquasecurity/trivy
```
## Installing the Chart
To install the chart with the release name `my-release`:
```
$ helm install my-release .
```
The command deploys Trivy on the Kubernetes cluster in the default configuration. The [Parameters](#parameters)
section lists the parameters that can be configured during installation.
> **Tip**: List all releases using `helm list`.
## Uninstalling the Chart
To uninstall/delete the `my-release` deployment:
```
$ helm delete my-release
```
The command removes all the Kubernetes components associated with the chart and deletes the release.
## Parameters
The following table lists the configurable parameters of the Trivy chart and their default values.
| Parameter | Description | Default |
|---------------------------------------|-------------------------------------------------------------------------|----------------|
| `image.registry` | Image registry | `docker.io` |
| `image.repository` | Image name | `aquasec/trivy` |
| `image.tag` | Image tag | `{TAG_NAME}` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.pullSecret` | The name of an imagePullSecret used to pull trivy image from e.g. Docker Hub or a private registry | |
| `replicaCount` | Number of Trivy Pods to run | `1` |
| `trivy.debugMode` | The flag to enable or disable Trivy debug mode | `false` |
| `trivy.gitHubToken` | The GitHub access token to download Trivy DB. More info: https://github.com/aquasecurity/trivy#github-rate-limiting | |
| `trivy.registryUsername` | The username used to log in at dockerhub. More info: https://aquasecurity.github.io/trivy/dev/advanced/private-registries/docker-hub/ | |
| `trivy.registryPassword` | The password used to log in at dockerhub. More info: https://aquasecurity.github.io/trivy/dev/advanced/private-registries/docker-hub/ | |
| `trivy.registryCredentialsExistingSecret` | Name of Secret containing dockerhub credentials. Alternative to the 2 parameters above, has precedence if set. | |
| `trivy.serviceAccount.annotations` | Additional annotations to add to the Kubernetes service account resource | |
| `trivy.skipDBUpdate` | The flag to enable or disable Trivy DB downloads from GitHub | `false` |
| `trivy.dbRepository` | OCI repository to retrieve the trivy vulnerability database from | `ghcr.io/aquasecurity/trivy-db` |
| `trivy.cache.redis.enabled` | Enable Redis as caching backend | `false` |
| `trivy.cache.redis.url` | Specify redis connection url, e.g. redis://redis.redis.svc:6379 | `` |
| `trivy.cache.redis.ttl` | Specify redis TTL, e.g. 3600s or 24h | `` |
| `trivy.cache.redis.tls` | Enable Redis TLS with public certificates | `` |
| `trivy.serverToken` | The token to authenticate Trivy client with Trivy server | `` |
| `trivy.existingSecret` | existingSecret if an existing secret has been created outside the chart. Overrides gitHubToken, registryUsername, registryPassword, serverToken | `` |
| `trivy.podAnnotations` | Annotations for pods created by statefulset | `{}` |
| `trivy.extraEnvVars` | extraEnvVars to be set on the container | `{}` |
| `service.name` | If specified, the name used for the Trivy service | |
| `service.type` | Kubernetes service type | `ClusterIP` |
| `service.port` | Kubernetes service port | `4954` |
| `service.sessionAffinity` | Kubernetes service session affinity | `ClientIP` |
| `httpProxy` | The URL of the HTTP proxy server | |
| `httpsProxy` | The URL of the HTTPS proxy server | |
| `noProxy` | The URLs that the proxy settings do not apply to | |
| `nodeSelector` | Node labels for pod assignment | |
| `affinity` | Affinity settings for pod assignment | |
| `tolerations` | Tolerations for pod assignment | |
| `podAnnotations` | Annotations for pods created by statefulset | `{}` |
The above parameters map to the env variables defined in [trivy](https://github.com/aquasecurity/trivy#configuration).
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
```
$ helm install my-release . \
--namespace my-namespace \
--set "service.port=9090" \
--set "trivy.vulnType=os\,library"
```
## Storage
This chart uses a PersistentVolumeClaim to reduce the number of database downloads between POD restarts or updates. The storageclass should have the reclaim policy `Retain`.
## Caching
You can specify a Redis server as cache backend. This Redis server has to be already present. You can use the [bitnami chart](https://bitnami.com/stack/redis/helm).
More Information about the caching backends can be found [here](https://github.com/aquasecurity/trivy#specify-cache-backend).
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
trivy - 容器安全扫描.zip (1408个子文件)
v1.0.0 41B
0644 0B
0644 0B
06fc4a94762f8a2c77c718947143d16e4e9ec7 122B
0755 0B
0755 0B
opensuseleap-15.2.1 282B
Dockerfile-jboss-base-7-base-1.1-3 1KB
1d7deed649fbecd66fab423ccd9d001bf9ff91 59B
opensuseleap-42.3 249B
Dockerfile-ubi8-8.3-227 2KB
42cd14d2b999cade090785af47e9f8b8e342ff 34B
4866d1d31ddffdb27fbcf583d5deb4386d5145 53B
56f658ee7c94c1a65099c680916c12f6b81ae4c586c662a8146791054fa466ab 435B
836be6497e83e13dc0cfbce7e6b973b1ea511d 40B
8bf3f07c3970b3e38c2cfb1c619cb86fae76d2 182B
937c5f0ce7f2054e4e3be65ab3cd0f9462dc1b 165B
9de29bb2d1d6434b8b29ae775ad8c2e48c5391 15B
aaec53f92314d9438a53c703f169d2cbf5001a 86B
afb744871f99e0ff8e6f253244836ed34c5d805fdb096d3a205ffaf5e9073cab 345B
afb744871f99e0ff8e6f253244836ed34c5d805fdb096d3a205ffaf5e9073cab 345B
afb744871f99e0ff8e6f253244836ed34c5d805fdb096d3a205ffaf5e9073cab 345B
afb744871f99e0ff8e6f253244836ed34c5d805fdb096d3a205ffaf5e9073cab 345B
afb744871f99e0ff8e6f253244836ed34c5d805fdb096d3a205ffaf5e9073cab 345B
afb744871f99e0ff8e6f253244836ed34c5d805fdb096d3a205ffaf5e9073cab 345B
afb744871f99e0ff8e6f253244836ed34c5d805fdb096d3a205ffaf5e9073cab 345B
all-patterns-copyright 1KB
almalinux-release 40B
alpine 163B
alpine-release 7B
alpine-release 7B
apk 10KB
b23a8f6569ae9ae331226205fa72f480ce5310707d0bc97e611f83fbbbde4604 584B
b23a8f6569ae9ae331226205fa72f480ce5310707d0bc97e611f83fbbbde4604 584B
b23a8f6569ae9ae331226205fa72f480ce5310707d0bc97e611f83fbbbde4604 584B
b23a8f6569ae9ae331226205fa72f480ce5310707d0bc97e611f83fbbbde4604 584B
b23a8f6569ae9ae331226205fa72f480ce5310707d0bc97e611f83fbbbde4604 584B
b23a8f6569ae9ae331226205fa72f480ce5310707d0bc97e611f83fbbbde4604 584B
b23a8f6569ae9ae331226205fa72f480ce5310707d0bc97e611f83fbbbde4604 584B
bar 3B
binary 4B
binaryfile 10B
binaryfile 10B
broken_elf 5B
broken_elf 5B
licensed.c 771B
licensed.c 771B
unlicensed.c 112B
c152fe2b87cb5e243414df71790a32912e778d 176B
Dockerfile.canary 454B
cdd16bd695eda2819e7637648f573c2ca64896c4f7bff9732ac9db734ca3bc2c 3KB
cdd16bd695eda2819e7637648f573c2ca64896c4f7bff9732ac9db734ca3bc2c 3KB
cdd16bd695eda2819e7637648f573c2ca64896c4f7bff9732ac9db734ca3bc2c 3KB
cdd16bd695eda2819e7637648f573c2ca64896c4f7bff9732ac9db734ca3bc2c 3KB
cdd16bd695eda2819e7637648f573c2ca64896c4f7bff9732ac9db734ca3bc2c 3KB
cdd16bd695eda2819e7637648f573c2ca64896c4f7bff9732ac9db734ca3bc2c 3KB
cdd16bd695eda2819e7637648f573c2ca64896c4f7bff9732ac9db734ca3bc2c 3KB
centos-release 38B
.clang-format 110B
CODEOWNERS 678B
common-license-copyright 2KB
packages.config 223B
config 111B
COPYING 1KB
corrupsed 3KB
styles.css 12KB
ubuntu.csv 2KB
debian.csv 817B
Customfile 34B
new.db 32KB
fanal.db 32KB
different-image-schema.db 32KB
broken-layer.db 32KB
broken-image.db 32KB
trivy-java.db 20KB
trivy.db 4B
debian_version 11B
debian_version 4B
digest-available 2KB
digest-status 1KB
secret.doc 13B
Dockerfile 361B
Dockerfile 143B
Dockerfile 58B
Dockerfile 47B
Dockerfile 41B
Dockerfile 34B
Dockerfile 31B
Dockerfile 31B
Dockerfile 24B
Dockerfile 12B
Dockerfile 11B
Dockerfile 11B
.dockerignore 47B
dotfile 7B
dpkg 86KB
dpkg_apt 2KB
kitchen-1.2.6-py2.7.egg 143KB
no-required-files.egg 141KB
empty 0B
共 1408 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15
资源评论
AbelZ_01
- 粉丝: 1000
- 资源: 5440
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功