Post Install Job¶
The Post Install job is a standalone Kubernetes job designed to upload dashboards and alerts to your Grafana instance. This job is automatically triggered with every Privacera upgrade and provides reliable on-demand updates of dashboards and alerts in Grafana.
Customizing Post Install Job Configurations¶
This section explains how to customize the Helm chart values for the Post-Install Job. This resource performs post-installation tasks such as on-demand setup operations during upgrades.
You can configure parameters such as resource allocations and environment variables.
To do this, follow the steps below and select the customization option.
-
Login to the Privacera jumphost and navigate to the
custom-varsdirectory.Bash -
Copy
vars.monitoring-post-install-job.ymlfile fromsample-varsdirectory tocustom-varsdirectory.Bash
Customizing the Job Configuration¶
- If you want to change the backoff limit (number of time the job restarts if the job pod fails) of Job, uncomment the variables below and provide the desired values in place of
<PLEASE_CHANGE>. Default backoff value is1.Bash - To update the resource quota of the Job running in Post Install, uncomment the below variables in
vars.monitoring-post-install-job.ymlfile and provide the desired values in place of<PLEASE_CHANGE>. Default memory limit is500Miand CPU is500mcore.
Triggering the Post-Install Job¶
To immediately upload Grafana dashboards and alerts using the Post-Install Job, perform the steps below:
-
Login to the Privacera jumphost and navigate to the
privacera-managerdirectory.Bash -
You can trigger the Post-Install Job in one of the following ways:
- Option 1: Upgrade the
post-install-jobHelm chart. This method uploads dashboards and alerts without affecting other services.Bash - Option 2: Re-run the
installcommand. This method may restart additional services along with the Post-Install Job.Bash
- Option 1: Upgrade the
Disable Post Install Job¶
To disable the Post-Install Job in Privacera, follow these steps:
-
Login to the Privacera jumphost and navigate to the
custom-varsdirectory.Bash -
Copy
vars.monitoring-post-install-job.ymlfile fromsample-varsdirectory tocustom-varsdirectory.Bash -
Uncomment
POST_INSTALL_JOB_ENABLEDvariable in the file and save.Bash -
(optional) If the Post-Install Job was previously enabled and you are now disabling it, complete the following additional steps.
a. Uninstall the existing Post-Install Job HELM chart using the following command.
b. Remove the existing Post-Install Job folder from the HELM directory.Bash