Comments (11)
This feature already exists. It's in the UI Subchart
So you can configure it in your policy-reporter values.yaml under the ui
key.
ui:
ingress:
enabled: true
...
from policy-reporter.
I somehow missed it :/ Thank you
from policy-reporter.
I will try to create an example today. What kind of ingress controller do you use?
from policy-reporter.
I tried it by myself and I'm sorry but it's not that easy as it should. Because VueJS need the subPath at build time, so it is static defined in the docker image and I did not find a solution to configure it at runtime.
I will try to find a solution but it can take a few days.
from policy-reporter.
hey, thank you for your request.
Do you mean something like "https://domain.com/policy-reporter-ui" ?
from policy-reporter.
@fjogeleit: yes
For example, in kube-prometheus-stack helm chart, there is the option configure the Ingress resource for alertmanager:
https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L210-L229
Could you provide a similar feature for the policy-reporter-ui?
from policy-reporter.
Configuring ingress is not enough. I tried this out by configuring an ingress resource manually and it did not work.
Does the underlying UI application support being hosted on a sub-path?
Could you please support this?
from policy-reporter.
@fjogeleit: nginx. ingress-nginx to be specific: https://github.com/kubernetes/ingress-nginx
from policy-reporter.
@fjogeleit: Thank you for the update
from policy-reporter.
@shilpa-0 I found a solution for this problem and created a new Policy Report UI version. I will publish a new helm release soon. If you want to try it out before you can use a similar configuration like this:
ui:
image:
tag: 0.13.2
enabled: true
plugins:
kyverno: true
ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
hosts:
- host: domain.com
paths:
- "/policy-reporter/(.*)"
Important - the UI will be available under http://domain.com/policy-reporter/
- the last /
is required.
from policy-reporter.
The subPath support is released with 1.8.7 of the Helm Chart
from policy-reporter.
Related Issues (20)
- dashboard related metrics cannot be found HOT 3
- [helm] add priorityClassName support
- Add priorityClassName to ui and kyvernoPlugin charts HOT 1
- reportFilter not excluding PolicyReport from namespaces HOT 3
- no such column: result.resource_kind HOT 2
- Allow searching through contained words HOT 3
- Wrong image in manifest/policy-reporter-kyverno-ui/install.yaml HOT 2
- Unable to import policyreport/v1alpha2 HOT 2
- policy_report_result{} should include type of policy HOT 4
- Querying logs in grafana loki HOT 1
- Publish policy-reporter as OCI chart HOT 4
- Support IRSA for AWS resources HOT 2
- UI "Logs" to the left disappears in a multi environment setup HOT 2
- provide policy validationFailureAction in policy_report_result metric for the reports HOT 5
- Querying logs in Grafana Loki HOT 5
- `secretRef` is not working for Grafana Loki HOT 15
- falco adapter integration didn't generate any reports HOT 1
- Telegram notifications HOT 1
- Helm chart - incorrect ingress backend configuration HOT 9
- UI name confusion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from policy-reporter.