REFACTOR(grafana): remove Trivy UI

- Use Grafana dashboard instead
- Delete trivy-ui ArgoCD Application
- Delete trivy ingress.yaml
- Update kustomization.yaml
This commit is contained in:
2026-01-04 17:52:15 +09:00
parent c51cca27d8
commit c90574aee2
3 changed files with 1 additions and 102 deletions

View File

@@ -41,78 +41,3 @@ spec:
labels: labels:
goldilocks.fairwinds.com/enabled: 'true' goldilocks.fairwinds.com/enabled: 'true'
revisionHistoryLimit: 10 revisionHistoryLimit: 10
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: trivy-ui
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://locustbaby.github.io/trivy-ui/
chart: trivy-ui
targetRevision: '*'
helm:
values: |
replicaCount: 1
image:
repository: locustbaby/trivy-ui
pullPolicy: IfNotPresent
tag: "v0.0.2"
serviceAccount:
create: true
service:
type: ClusterIP
port: 80
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: ~
memory: 128Mi
env:
KUBECONFIG_DIR: "/kubeconfigs"
STATIC_PATH: "trivy-dashboard/dist"
DEBUG: "false"
kubeconfigs:
create: false
rbac:
create: true
destination:
server: https://kubernetes.default.svc
namespace: trivy-system
ignoreDifferences:
- group: apps
kind: Deployment
jsonPointers:
- /spec/template/spec/containers/0/resources/limits/cpu
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- PruneLast=true
- RespectIgnoreDifferences=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
managedNamespaceMetadata:
labels:
goldilocks.fairwinds.com/enabled: 'true'
revisionHistoryLimit: 10

View File

@@ -1,25 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: trivy-ui-ingress
namespace: trivy-system
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
traefik.ingress.kubernetes.io/router.middlewares: authelia-authelia-auth@kubernetescrd
spec:
ingressClassName: traefik
tls:
- hosts:
- trivy0213.kro.kr
secretName: trivy-ui-tls
rules:
- host: trivy0213.kro.kr
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: trivy-ui
port:
number: 80

View File

@@ -1,4 +1,3 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources: []
- ingress.yaml