Skip to content

Commit

Permalink
Functional
Browse files Browse the repository at this point in the history
  • Loading branch information
danmanners committed Nov 10, 2023
1 parent 34dad3e commit 2df3a8f
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 4 deletions.
9 changes: 9 additions & 0 deletions manifests/workloads/kubeclarity/db-root-creds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
data:
password: dUJnenFVMWU3N3dQeEpKc29CZzRoQmpwR09keHMx
username: cG9zdGdyZXM=
kind: Secret
metadata:
name: postgres-superuser
namespace: kubeclarity
type: kubernetes.io/basic-auth
35 changes: 35 additions & 0 deletions manifests/workloads/kubeclarity/initdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: batch/v1
kind: Job
metadata:
name: kubeclarity-initdb
namespace: kubeclarity
labels:
app: kubeclarity
spec:
backoffLimit: 4
template:
spec:
restartPolicy: OnFailure
containers:
- name: kubeclarity-initdb
image: core.harbor.homelab.danmanners.com/ghcr.io/onedr0p/postgres-initdb:14.8
imagePullPolicy: IfNotPresent
env:
- name: POSTGRES_HOST
value: "primary-rw.postgres.svc.cluster.local"
- name: POSTGRES_DB
value: kubeclarity
- name: POSTGRES_SUPER_PASS
valueFrom:
secretKeyRef:
name: postgres-superuser
key: password
- name: POSTGRES_USER
value: kubeclarity
- name: POSTGRES_PASS
valueFrom:
secretKeyRef:
name: kubeclarity-postgresql-secret
key: secretKey
- name: POSTGRES_PORT
value: "5432"
1 change: 1 addition & 0 deletions manifests/workloads/kubeclarity/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Kustomization
namespace: kubeclarity

resources:
- db-root-creds.yaml
- external-dns.yaml
- ingress-basicAuth.yaml
- postgresSecret.yaml
2 changes: 1 addition & 1 deletion manifests/workloads/kubeclarity/postgresSecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
namespace: kubeclarity
spec:
encryptedData:
secretKey: A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NEzYoNPM1JR5wGLru2MvsRznYdwXpDuvEMzABKKxhAFyUkdZXiGge4uTt+G7bamy+wmRkQNqSAp2/sZnh988n7yOujey0vrVBBrf/pgU5iIPi1AvZJ715zwopfwRe3opMcMqsDic1FpBp7Qgg8xy22bROvBCip7NflxJthy73XY5adClesU4it6GWK/c8pQnW/K+1LgyX9nHVb53d1T3+u4kh3uFm+PH3YfVTFNhkbeUFgmAPCrKHPIWNZLxV3vu7Fne0R6vwTY5gxni9SFDxWeON3OlNNL4a5f58D7jODTSC2baeq5X/7w9BrqfL/tQ1A5S9TvA1Z1W4mDFGnyLDFvsk1FyIdQ/PDyj3U5e6I7EzRu1XVQe+C0vpjt14PI6iIoj6o/0dCB0W7K/F+QcPNEH2syYvcjhVCOeR2p1D1olN1fNoxdmW1RbKebeZSZP588d6bL0q4oP0v5tIGfoBJ9p1aDeF9kbl5qdZE1Un4gj1Xv1Who99HnugUSA=
template:
metadata:
creationTimestamp: null
Expand Down
6 changes: 3 additions & 3 deletions manifests/workloads/kubeclarity/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ kubeclarity-runtime-scan:
## Scanner config.
scanner:
## Space seperated list of scanners. (grype dependency-track)
scannerList: "grype"
scannerList: "grype dependency-track trivy"

grype:
## Enable grype scanner, if true make sure to add it to scannerList above
Expand All @@ -187,7 +187,7 @@ kubeclarity-runtime-scan:
dependency-track:
## Enable dependency-track scanner, if true make sure to add it to scannerList above
##
enabled: false
enabled: true
insecureSkipVerify: "true"
disableTls: "true"
apiserverAddress: "dependency-track-apiserver.dependency-track"
Expand All @@ -197,7 +197,7 @@ kubeclarity-runtime-scan:
## Enable trivy scanner, if true make sure to add it to scannerList above.
## To guarentee reliable scans, also ensure that the trivy analyzer is enabled.
##
enabled: false
enabled: true
timeout: "300"


Expand Down

0 comments on commit 2df3a8f

Please sign in to comment.