Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kyverno] Investigate the use of an external database & redis #1048

Open
github-actions bot opened this issue Nov 24, 2024 · 0 comments
Open

[kyverno] Investigate the use of an external database & redis #1048

github-actions bot opened this issue Nov 24, 2024 · 0 comments

Comments

@github-actions
Copy link

https://kyverno\.github\.io/policy\-reporter/guide/helm\-chart\-core\#external\-databases\-appversion\-2150

database:

type: "postgres"

redis:

# enables the feature

enabled: false

# TODO: [kyverno] Investigate the use of an external database & redis
# https://kyverno.github.io/policy-reporter/guide/helm-chart-core#external-databases-appversion-2150
# database:
# type: "postgres"
#
# redis:
# # enables the feature
# enabled: false

---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
  name: &app policy-reporter
spec:
  interval: 30m
  chart:
    spec:
      chart: policy-reporter
      version: 3.0.0-rc.9
      sourceRef:
        kind: HelmRepository
        name: kyverno-reporter
        namespace: flux-system
      interval: 15m
  driftDetection:
    mode: enabled
  maxHistory: 3
  install:
    remediation:
      retries: 3
  upgrade:
    cleanupOnFail: true
    remediation:
      retries: 3
  values:
    api:
      enabled: true
    ui:
      enabled: true
      plugins:
        kyverno: true
      # ingress:
      #   enabled: true
      #   className: internal
      #   annotations:
      #     ## Enable Oauth2 Authentication
      #     nginx.ingress.kubernetes.io/auth-url: "http://oauth2-proxy.security.svc.cluster.local:4180/oauth2/auth"
      #     nginx.ingress.kubernetes.io/auth-signin: "https://auth.${SECRET_DOMAIN}/oauth2/auth/oauth2/start?rd=$scheme://$host$request_uri"
      #     ##
      #     gethomepage.dev/enabled: "true"
      #     gethomepage.dev/name: "Kyberno Policy Reporter"
      #     gethomepage.dev/group: "Observability"
      #     gethomepage.dev/icon: "https://kyverno.github.io/policy-reporter/favicon.ico"
      #     gethomepage.dev/description: "Policy Reporter"
      #     gethomepage.dev/app: *app
      #   hosts:
      #     - host: &host ${GATUS_SUBDOMAIN:-${APP}}.${SECRET_DOMAIN}
      #       paths:
      #         - path: /
      #           pathType: Prefix

    # Enables Prometheus operator
    monitoring:
      enabled: true

    # TODO: [kyverno] Investigate the use of an external database & redis
    # https://kyverno.github.io/policy-reporter/guide/helm-chart-core#external-databases-appversion-2150
    # database:
    #   type: "postgres"
    #
    # redis:
    #   # enables the feature
    #   enabled: false

    target:
      loki:
        # loki host address
        host: "http://loki.observability.svc.cluster.local:3100"
        # loki API path, defaults to "/api/prom/push" (deprecated)
        path: "/loki/api/v1/push"
        # minimum priority "" < info < warning < critical < error
        minimumPriority: "warning"
        # Skip already existing PolicyReportResults on startup
        skipExistingOnStartup: true
        # # Send only results from the given sources
        # customLabels:
        #   cluster: rancher-desktop
        sources:
        - kyverno
        - falco

    kyvernoPlugin:
      enabled: true

    global:
      plugins:
        kyverno: true

    ingress:
      enabled: true
      className: internal
      annotations:
        ## Enable Oauth2 Authentication
        nginx.ingress.kubernetes.io/auth-url: "http://oauth2-proxy.security.svc.cluster.local:4180/oauth2/auth"
        nginx.ingress.kubernetes.io/auth-signin: "https://auth.${SECRET_DOMAIN}/oauth2/auth/oauth2/start?rd=$scheme://$host$request_uri"
        ##
        gethomepage.dev/enabled: "true"
        gethomepage.dev/name: "Kyberno Policy Reporter"
        gethomepage.dev/group: "Observability"
        gethomepage.dev/icon: "https://kyverno.github.io/policy-reporter/favicon.ico"
        gethomepage.dev/description: "Policy Reporter"
        gethomepage.dev/app: *app
      hosts:
        - host: &host ${GATUS_SUBDOMAIN:-${APP}}.${SECRET_DOMAIN}
          paths:
            - path: /
              pathType: Prefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants