-
Notifications
You must be signed in to change notification settings - Fork 151
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
Replace NetworkExplorer kernel-collector-podsecuritypolicy since PodSecurityPolicy was removed in K8s v1.25 #896
Comments
I have tested with the chart v0.85.0. Please do advice on timelines. |
@jvoravong I'm still getting error with Pod Sec Policy and here is error. K8s Version: v1.25.6 2023-10-20T22:56:52.7227095Z Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "-splunk-otel-collector-kernel-collector" namespace: "" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1" |
@jvoravong Please do respond with your findings. Thanks in advance. |
@kumachop2 the error is due to how helm works. The psp object is in the stored helm release state and it can't determine the current state of psp from the last deployed manifest when it attempts to create a diff for upgrade. Refer to this helm document on how you can fix the helm state and successfully upgrade. |
@jinja2 Thank You for your response and inputs. I'm running the helm chart against local repo rather internet due to external access issues. Some reason local repo had PodSecurityPolicy template and deleted it to resolve. |
Is your feature request related to a problem? Please describe.
Description
https://github.com/signalfx/splunk-otel-collector-chart/blob/main/helm-charts/splunk-otel-collector/templates/network-explorer/kernel-collector-podsecuritypolicy.yaml uses the no longer available object.
Steps to Reproduce
Try deploying the network explorer to a Kubernetes +1.25 cluster.
Expected Result
Should be able to deploy the Network Explorer to current Kubernetes versions.
Actual Result
Can only deploy to older versions of Kubernetes.
Tested with the chart v0.83.0
Describe the solution you'd like
Refactor the kernel-collector K8s resources to use proper K8s objects instead of a PodSecurityPolicy.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: