diff --git a/README.md b/README.md index 1d3b299..820aa8f 100644 --- a/README.md +++ b/README.md @@ -43,4 +43,15 @@ kubectl apply -f config/install.yaml # todo: use a release url ``` ### Helm Chart -Reports server can be installed via the official Helm chart: -URL- \ No newline at end of file +Reports server can be installed via the official Helm chart: +```shell +helm install report-server --namespace kyverno --wait ./charts/reports-server/ # todo: use a offical helm chart +``` + +Note: if you already have wgpolicy CRDs or kyverno CRDs installed, you won't be able to install api services. Use the following command to install other components: + +```shell +helm install report-server --namespace kyverno --wait ./charts/reports-server/ --set apiServices.enabled=false # todo: use a offical helm chart +``` + +Now you can update the [apiservice samples](./config/samples/apiservices.yaml) with the right reports-server name and namespace and apply that manifest. \ No newline at end of file diff --git a/config/samples/apiservices.yaml b/config/samples/apiservices.yaml new file mode 100644 index 0000000..179d276 --- /dev/null +++ b/config/samples/apiservices.yaml @@ -0,0 +1,34 @@ +--- +apiVersion: apiregistration.k8s.io/v1 +kind: APIService +metadata: + name: v1alpha2.wgpolicyk8s.io + namespace: kyverno + labels: + kube-aggregator.kubernetes.io/automanaged: "false" +spec: + group: wgpolicyk8s.io + groupPriorityMinimum: 100 + insecureSkipTLSVerify: true + service: + name: + namespace: + version: v1alpha2 + versionPriority: 100 +--- +apiVersion: apiregistration.k8s.io/v1 +kind: APIService +metadata: + name: v1.reports.kyverno.io + namespace: kyverno + labels: + kube-aggregator.kubernetes.io/automanaged: "false" +spec: + group: reports.kyverno.io + groupPriorityMinimum: 100 + insecureSkipTLSVerify: true + service: + name: + namespace: + version: v1 + versionPriority: 100 \ No newline at end of file