This commit is contained in:
Wolfgang Hottgenroth 2025-02-03 05:53:24 +01:00
commit e3a74b9089
Signed by: wn
GPG Key ID: 836E9E1192A6B132
5 changed files with 55 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
secrets.txt
deployment/secrets.txt

22
ingress.yml Normal file
View File

@ -0,0 +1,22 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: trivy
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production-http
spec:
tls:
- hosts:
- trivy-server.hottis.de
secretName: trivy-server-cert
rules:
- host: trivy-server.hottis.de
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: trivy-server
port:
number: 4954

22
install.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
ARG1=$1
NAMESPACE=$(cat namespace)
TRIVY_VERSION=0.11.0
kubectl create namespace $NAMESPACE \
--dry-run=client \
-o yaml | \
kubectl -f - apply
helm repo add aquasecurity https://aquasecurity.github.io/helm-charts/
helm repo update
helm upgrade --install \
trivy-server aquasecurity/trivy \
-f values.yml \
--version $TRIVY_VERSION \
--namespace=$NAMESPACE

1
namespace Normal file
View File

@ -0,0 +1 @@
trivy

7
values.yml Normal file
View File

@ -0,0 +1,7 @@
trivy:
debugMode: true
existingSecret: trivy-secret
cache:
redis:
enabled: true
url: "redis://redis-master.redis.svc.cluster.local:6379/5"