kyverno / reports-server

Alternate reports storage in Kubernetes outside etcd
Apache License 2.0
16 stars 8 forks source link

Installation via yaml manifests fails #146

Closed surajnarwade closed 2 months ago

surajnarwade commented 2 months ago

I followed the installation instruction here via yaml manifests

I can see that pod is crashing:

➜ kubectl get pods
NAME                             READY   STATUS             RESTARTS      AGE
reports-server-d5ccb6f79-crhfn   0/1     CrashLoopBackOff   3 (16s ago)   69s
reports-server-postgresql-0      1/1     Running            0             69s

and when I checked the logs:

➜ kubectl logs reports-server-d5ccb6f79-crhfn
Error: unknown flag: --dbsslmode
Usage:
   [flags]

Policy server flags:

      --dbhost string       Host url of postgres instance (default "reportsdb.kyverno")
      --dbname string       Name of the database to store policy reports in (default "reportsdb")
      --dbpassword string   Password to login into postgres (default "password")
      --dbport int          Port of the postgres instance (default 5432)
      --dbuser string       Username to login into postgres (default "postgres")
....
....
....
Features flags:

panic: unknown flag: --dbsslmode

goroutine 1 [running]:
main.main()
    github.com/kyverno/reports-server/main.go:20 +0x88
vishal-chdhry commented 2 months ago

@surajnarwade looks like the manifest uses 0.0.1 alpha instead of latest, I will update the yaml to fix this. You can update the yaml to use the latest image and that should fix this