Compare commits
8 Commits
916aa3df74
...
a4d5f9fe03
Author | SHA1 | Date | |
---|---|---|---|
a4d5f9fe03
|
|||
428504098d | |||
98d5f6de80 | |||
019fd4384d | |||
bb22ae7b02 | |||
6d74a75e59 | |||
170811acf6 | |||
58f4a8a29b |
@@ -6,7 +6,7 @@ libation:
|
|||||||
suspend: false
|
suspend: false
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
timeZone: US/Central
|
timeZone: US/Central
|
||||||
schedule: "0 * * * *"
|
schedule: "30 4 * * *"
|
||||||
startingDeadlineSeconds: 90
|
startingDeadlineSeconds: 90
|
||||||
successfulJobsHistory: 3
|
successfulJobsHistory: 3
|
||||||
failedJobsHistory: 3
|
failedJobsHistory: 3
|
||||||
|
@@ -75,7 +75,7 @@ roundcube:
|
|||||||
suspend: false
|
suspend: false
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
timeZone: US/Central
|
timeZone: US/Central
|
||||||
schedule: 0 4 * * *
|
schedule: 30 4 * * *
|
||||||
startingDeadlineSeconds: 90
|
startingDeadlineSeconds: 90
|
||||||
successfulJobsHistory: 3
|
successfulJobsHistory: 3
|
||||||
failedJobsHistory: 3
|
failedJobsHistory: 3
|
||||||
|
@@ -63,12 +63,21 @@ argo-cd:
|
|||||||
enabled: true
|
enabled: true
|
||||||
server:
|
server:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
ingress:
|
extensions:
|
||||||
enabled: false
|
enabled: true
|
||||||
|
extensionList:
|
||||||
|
- name: extension-trivy
|
||||||
|
env:
|
||||||
|
- name: EXTENSION_URL
|
||||||
|
value: https://github.com/mziyabo/argocd-trivy-extension/releases/download/v0.2.0/extension-trivy.tar
|
||||||
|
- name: EXTENSION_CHECKSUM_URL
|
||||||
|
value: https://github.com/mziyabo/argocd-trivy-extension/releases/download/v0.2.0/extension-trivy_checksums.txt
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
repoServer:
|
repoServer:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
extraContainers:
|
extraContainers:
|
||||||
|
@@ -189,41 +189,3 @@ spec:
|
|||||||
- ApplyOutOfSyncOnly=true
|
- ApplyOutOfSyncOnly=true
|
||||||
- ServerSideApply=true
|
- ServerSideApply=true
|
||||||
- PruneLast=true
|
- PruneLast=true
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: snapshot-controller
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: snapshot-controller
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: {{ .Values.git.repo }}
|
|
||||||
targetRevision: {{ .Values.git.revision }}
|
|
||||||
path: clusters/{{ .Values.cluster.name }}/standalone/snapshot-controller
|
|
||||||
destination:
|
|
||||||
name: in-cluster
|
|
||||||
namespace: snapshot-controller
|
|
||||||
revisionHistoryLimit: 3
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
retry:
|
|
||||||
limit: 10
|
|
||||||
backoff:
|
|
||||||
duration: 1m
|
|
||||||
factor: 2
|
|
||||||
maxDuration: 16m
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
- ApplyOutOfSyncOnly=true
|
|
||||||
- ServerSideApply=true
|
|
||||||
- PruneLast=true
|
|
||||||
|
@@ -19,6 +19,9 @@ headlamp:
|
|||||||
- name: cert-manager
|
- name: cert-manager
|
||||||
source: https://artifacthub.io/packages/headlamp/headlamp-plugins/headlamp_cert-manager
|
source: https://artifacthub.io/packages/headlamp/headlamp-plugins/headlamp_cert-manager
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
- name: trivy
|
||||||
|
source: https://artifacthub.io/packages/headlamp/headlamp-trivy/headlamp_trivy
|
||||||
|
version: 0.3.1
|
||||||
installOptions:
|
installOptions:
|
||||||
parallel: true
|
parallel: true
|
||||||
maxConcurrent: 2
|
maxConcurrent: 2
|
||||||
|
@@ -8,7 +8,7 @@ kronic:
|
|||||||
adminUsername: kronic
|
adminUsername: kronic
|
||||||
existingSecretName: kronic-config-secret
|
existingSecretName: kronic-config-secret
|
||||||
env:
|
env:
|
||||||
KRONIC_ALLOW_NAMESPACES: "gitea vault talos libation kubernetes-cloudflare-ddns"
|
KRONIC_ALLOW_NAMESPACES: "gitea,vault,talos,libation,kubernetes-cloudflare-ddns"
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
resources:
|
resources:
|
||||||
|
22
clusters/cl01tl/monitoring/trivy/Chart.yaml
Normal file
22
clusters/cl01tl/monitoring/trivy/Chart.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: trivy
|
||||||
|
version: 1.0.0
|
||||||
|
description: Trivy
|
||||||
|
keywords:
|
||||||
|
- trivy
|
||||||
|
- vulnerability
|
||||||
|
- monitoring
|
||||||
|
- kubernetes
|
||||||
|
home: https://wiki.alexlebens.dev/s/5cffa529-4c2e-4126-99eb-cc4aeb5a49b3
|
||||||
|
sources:
|
||||||
|
- https://github.com/aquasecurity/trivy
|
||||||
|
- https://github.com/aquasecurity/trivy-operator
|
||||||
|
- https://github.com/aquasecurity/trivy-operator/tree/main/deploy/helm
|
||||||
|
maintainers:
|
||||||
|
- name: alexlebens
|
||||||
|
dependencies:
|
||||||
|
- name: trivy-operator
|
||||||
|
version: 0.28.1
|
||||||
|
repository: https://aquasecurity.github.io/helm-charts/
|
||||||
|
icon: https://raw.githubusercontent.com/aquasecurity/trivy/main/docs/imgs/logo.png
|
||||||
|
appVersion: v0.26.1
|
113
clusters/cl01tl/monitoring/trivy/values.yaml
Normal file
113
clusters/cl01tl/monitoring/trivy/values.yaml
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
trivy-operator:
|
||||||
|
targetWorkloads: "pod,replicaset,replicationcontroller,statefulset,daemonset,cronjob,job"
|
||||||
|
operator:
|
||||||
|
replicas: 1
|
||||||
|
vulnerabilityScannerEnabled: true
|
||||||
|
sbomGenerationEnabled: false
|
||||||
|
clusterSbomCacheEnabled: false
|
||||||
|
configAuditScannerEnabled: false
|
||||||
|
rbacAssessmentScannerEnabled: false
|
||||||
|
infraAssessmentScannerEnabled: false
|
||||||
|
clusterComplianceEnabled: false
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
trivy:
|
||||||
|
createConfig: true
|
||||||
|
image:
|
||||||
|
registry: mirror.gcr.io
|
||||||
|
repository: aquasec/trivy
|
||||||
|
tag: 0.62.1
|
||||||
|
storageClassEnabled: true
|
||||||
|
storageClassName: ceph-block
|
||||||
|
storageSize: "5Gi"
|
||||||
|
registry:
|
||||||
|
mirror:
|
||||||
|
"registry-1.docker.io": proxy-registry-1.docker.io
|
||||||
|
"quay.io": proxy-quay.io
|
||||||
|
"registry.k8s.io": proxy-registry.k8s
|
||||||
|
"gcr.io": proxy-gcr.io
|
||||||
|
"ghcr.io": proxy-ghcr.io
|
||||||
|
"hub.docker": proxy-hub.docker
|
||||||
|
severity: UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL
|
||||||
|
slow: true
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128M
|
||||||
|
supportedConfigAuditKinds: "Workload,Service,Role,ClusterRole,NetworkPolicy,Ingress,LimitRange,ResourceQuota"
|
||||||
|
server:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 512Mi
|
||||||
|
replicas: 1
|
||||||
|
compliance:
|
||||||
|
reportType: summary
|
||||||
|
cron: 0 5 * * *
|
||||||
|
specs:
|
||||||
|
- k8s-cis-1.23
|
||||||
|
- k8s-nsa-1.0
|
||||||
|
- k8s-pss-baseline-0.1
|
||||||
|
- k8s-pss-restricted-0.1
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /tmp
|
||||||
|
name: cache-policies
|
||||||
|
readOnly: false
|
||||||
|
volumes:
|
||||||
|
- name: cache-policies
|
||||||
|
emptyDir: {}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
nodeCollector:
|
||||||
|
volumeMounts:
|
||||||
|
- name: var-lib-etcd
|
||||||
|
mountPath: /var/lib/etcd
|
||||||
|
readOnly: true
|
||||||
|
- name: var-lib-kubelet
|
||||||
|
mountPath: /var/lib/kubelet
|
||||||
|
readOnly: true
|
||||||
|
- name: var-lib-kube-scheduler
|
||||||
|
mountPath: /var/lib/kube-scheduler
|
||||||
|
readOnly: true
|
||||||
|
- name: var-lib-kube-controller-manager
|
||||||
|
mountPath: /var/lib/kube-controller-manager
|
||||||
|
readOnly: true
|
||||||
|
- name: etc-systemd
|
||||||
|
mountPath: /etc/systemd
|
||||||
|
readOnly: true
|
||||||
|
- name: lib-systemd
|
||||||
|
mountPath: /lib/systemd/
|
||||||
|
readOnly: true
|
||||||
|
- name: etc-kubernetes
|
||||||
|
mountPath: /etc/kubernetes
|
||||||
|
readOnly: true
|
||||||
|
- name: etc-cni-netd
|
||||||
|
mountPath: /etc/cni/net.d/
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: var-lib-etcd
|
||||||
|
hostPath:
|
||||||
|
path: /var/lib/etcd
|
||||||
|
- name: var-lib-kubelet
|
||||||
|
hostPath:
|
||||||
|
path: /var/lib/kubelet
|
||||||
|
- name: var-lib-kube-scheduler
|
||||||
|
hostPath:
|
||||||
|
path: /var/lib/kube-scheduler
|
||||||
|
- name: var-lib-kube-controller-manager
|
||||||
|
hostPath:
|
||||||
|
path: /var/lib/kube-controller-manager
|
||||||
|
- name: etc-systemd
|
||||||
|
hostPath:
|
||||||
|
path: /etc/systemd
|
||||||
|
- name: lib-systemd
|
||||||
|
hostPath:
|
||||||
|
path: /lib/systemd
|
||||||
|
- name: etc-kubernetes
|
||||||
|
hostPath:
|
||||||
|
path: /etc/kubernetes
|
||||||
|
- name: etc-cni-netd
|
||||||
|
hostPath:
|
||||||
|
path: /etc/cni/net.d/
|
@@ -151,80 +151,6 @@ gitea:
|
|||||||
enabled: false
|
enabled: false
|
||||||
mariadb:
|
mariadb:
|
||||||
enabled: false
|
enabled: false
|
||||||
# renovate:
|
|
||||||
# global:
|
|
||||||
# fullnameOverride: gitea-renovate
|
|
||||||
# controllers:
|
|
||||||
# renovate:
|
|
||||||
# type: cronjob
|
|
||||||
# cronjob:
|
|
||||||
# suspend: false
|
|
||||||
# concurrencyPolicy: Forbid
|
|
||||||
# timeZone: US/Central
|
|
||||||
# schedule: "0 4 * * *"
|
|
||||||
# startingDeadlineSeconds: 90
|
|
||||||
# successfulJobsHistory: 3
|
|
||||||
# failedJobsHistory: 3
|
|
||||||
# backoffLimit: 3
|
|
||||||
# parallelism: 1
|
|
||||||
# containers:
|
|
||||||
# main:
|
|
||||||
# image:
|
|
||||||
# repository: renovate/renovate
|
|
||||||
# tag: 40
|
|
||||||
# pullPolicy: IfNotPresent
|
|
||||||
# env:
|
|
||||||
# - name: RENOVATE_PLATFORM
|
|
||||||
# value: gitea
|
|
||||||
# - name: RENOVATE_AUTODISCOVER
|
|
||||||
# value: 'true'
|
|
||||||
# - name: RENOVATE_ONBOARDING
|
|
||||||
# value: 'true'
|
|
||||||
# - name: RENOVATE_BASE_DIR
|
|
||||||
# value: /tmp/renovate
|
|
||||||
# - name: RENOVATE_PERSIST_REPO_DATA
|
|
||||||
# value: true
|
|
||||||
# - name: RENOVATE_REPOSITORY_CACHE
|
|
||||||
# value: true
|
|
||||||
# - name: RENOVATE_REDIS_URL
|
|
||||||
# value: redis://gitea-renovate-valkey-primary.gitea:6379
|
|
||||||
# - name: LOG_LEVEL
|
|
||||||
# value: info
|
|
||||||
# envFrom:
|
|
||||||
# - secretRef:
|
|
||||||
# name: gitea-renovate-secret
|
|
||||||
# resources:
|
|
||||||
# requests:
|
|
||||||
# cpu: 100m
|
|
||||||
# memory: 128Mi
|
|
||||||
# persistence:
|
|
||||||
# base:
|
|
||||||
# storageClass: ceph-block
|
|
||||||
# accessMode: ReadWriteOnce
|
|
||||||
# size: 5Gi
|
|
||||||
# retain: true
|
|
||||||
# advancedMounts:
|
|
||||||
# renovate:
|
|
||||||
# main:
|
|
||||||
# - path: /tmp/renovate
|
|
||||||
# readOnly: false
|
|
||||||
# ssh:
|
|
||||||
# enabled: true
|
|
||||||
# type: secret
|
|
||||||
# name: gitea-renovate-ssh-secret
|
|
||||||
# advancedMounts:
|
|
||||||
# renovate:
|
|
||||||
# main:
|
|
||||||
# - path: /home/ubuntu/.ssh
|
|
||||||
# readOnly: true
|
|
||||||
# mountPropagation: None
|
|
||||||
# cache:
|
|
||||||
# type: emptyDir
|
|
||||||
# advancedMounts:
|
|
||||||
# renovate:
|
|
||||||
# main:
|
|
||||||
# - path: /tmp/renovate/cache
|
|
||||||
# readOnly: false
|
|
||||||
backup:
|
backup:
|
||||||
global:
|
global:
|
||||||
fullnameOverride: gitea-backup
|
fullnameOverride: gitea-backup
|
||||||
|
@@ -76,7 +76,7 @@ harbor:
|
|||||||
# interval: 24h
|
# interval: 24h
|
||||||
# dryrun: false
|
# dryrun: false
|
||||||
trivy:
|
trivy:
|
||||||
enabled: false
|
enabled: true
|
||||||
database:
|
database:
|
||||||
type: external
|
type: external
|
||||||
external:
|
external:
|
||||||
|
@@ -6,7 +6,7 @@ kubernetes-cloudflare-ddns:
|
|||||||
suspend: false
|
suspend: false
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
timeZone: US/Central
|
timeZone: US/Central
|
||||||
schedule: "0 0 * * *"
|
schedule: "30 4 * * *"
|
||||||
startingDeadlineSeconds: 90
|
startingDeadlineSeconds: 90
|
||||||
successfulJobsHistory: 3
|
successfulJobsHistory: 3
|
||||||
failedJobsHistory: 3
|
failedJobsHistory: 3
|
||||||
|
@@ -13,7 +13,7 @@ etcd-backup:
|
|||||||
suspend: false
|
suspend: false
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
timeZone: US/Central
|
timeZone: US/Central
|
||||||
schedule: "0 0 * * *"
|
schedule: "0 2 * * *"
|
||||||
startingDeadlineSeconds: 90
|
startingDeadlineSeconds: 90
|
||||||
successfulJobsHistory: 3
|
successfulJobsHistory: 3
|
||||||
failedJobsHistory: 3
|
failedJobsHistory: 3
|
||||||
|
@@ -1,20 +0,0 @@
|
|||||||
apiVersion: v2
|
|
||||||
name: snapshot-controller
|
|
||||||
version: 1.0.0
|
|
||||||
description: Snapshot Controller
|
|
||||||
keywords:
|
|
||||||
- snapshot-controller
|
|
||||||
- storage
|
|
||||||
- kubernetes
|
|
||||||
home: https://wiki.alexlebens.dev/s/3057b7d3-4715-44ea-8617-5ef53657330b
|
|
||||||
sources:
|
|
||||||
- https://github.com/kubernetes-csi/external-snapshotter
|
|
||||||
- https://github.com/piraeusdatastore/helm-charts/tree/main/charts/snapshot-controller
|
|
||||||
maintainers:
|
|
||||||
- name: alexlebens
|
|
||||||
dependencies:
|
|
||||||
- name: snapshot-controller
|
|
||||||
version: 4.0.2
|
|
||||||
repository: https://piraeus.io/helm-charts/
|
|
||||||
icon: https://raw.githubusercontent.com/piraeusdatastore/piraeus/master/artwork/sandbox-artwork/icon/color.svg
|
|
||||||
appVersion: "v8.2.1"
|
|
@@ -1,16 +0,0 @@
|
|||||||
snapshot-controller:
|
|
||||||
controller:
|
|
||||||
replicaCount: 3
|
|
||||||
args:
|
|
||||||
leaderElection: true
|
|
||||||
leaderElectionNamespace: snapshot-controller
|
|
||||||
httpEndpoint: ":8080"
|
|
||||||
image:
|
|
||||||
repository: registry.k8s.io/sig-storage/snapshot-controller
|
|
||||||
tag: ""
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 50m
|
|
||||||
memory: 128Mi
|
|
||||||
serviceMonitor:
|
|
||||||
create: true
|
|
@@ -3,10 +3,13 @@ snapshot-controller:
|
|||||||
replicaCount: 3
|
replicaCount: 3
|
||||||
args:
|
args:
|
||||||
leaderElection: true
|
leaderElection: true
|
||||||
leaderElectionNamespace: "$(NAMESPACE)"
|
leaderElectionNamespace: snapshot-controller
|
||||||
image:
|
image:
|
||||||
repository: registry.k8s.io/sig-storage/snapshot-controller
|
repository: registry.k8s.io/sig-storage/snapshot-controller
|
||||||
tag: v8.2.1
|
tag: v8.2.1
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 128Mi
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
create: true
|
create: true
|
||||||
volumeSnapshotClasses: []
|
|
||||||
|
Reference in New Issue
Block a user