PWX-35917: Adding K8s retriever job to PX Operator project. #1424
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PX-K8S-Retriever Job
Overview
The
px-k8s-retriever-job
is a Kubernetes Job designed to perform certain operations in the/var/cores
directory on the nodes. This directory, by default, belongs to the root user.We retrieve a bunch o Kubernetes objects useful to perform diagnostics and troubleshooting for Portworx.
Permission Requirements
Because the target directory (
/var/cores
) is owned by the root user, the container within thepx-k8s-retriever-job
needs to run with root permissions to be able to create or modify files and subdirectories inside it. As such:Usage
To deploy the job, create it on the namespace where you've deployed Portworx:
Check the logs, you can see on which of your nodes the job ran: