Change Tracking¶
These actions were built for tracking changes in your cluster
Git change audit¶
Playbook Action: git_change_audit
Audit Kubernetes resources from the cluster to Git as yaml files (cluster/namespace/resources hierarchy). Monitor resource changes and save it to a dedicated Git repository.
Using this audit repository, you can easily detect unplanned changes on your clusters.
Add this to your Robusta configuration (Helm values.yaml):
customPlaybooks:
- actions:
- git_change_audit:
cluster_name: string
git_key: '********'
git_url: git@github.com:arikalon1/robusta-audit.git
triggers:
- on_kubernetes_any_resource_all_changes: {}
The above is an example. Try customizing the trigger and parameters.
- cluster_name (str)
This cluster name. Changes will be audited under this cluster name.
- git_url (str)
Audit Git repository url.
- git_key (str)
Git repository deployment key with write access. To set this up generate a private/public key pair for GitHub.
- ignored_changes (str list)
List of changes that shouldn't be audited.
on_kubernetes_warning_event_delete
Add deployment lines to grafana¶
Playbook Action: add_deployment_lines_to_grafana
Add annotations to Grafana when a Kubernetes resource is updated and the image tags change.
Supports Deployments, ReplicaSets, DaemonSets, StatefulSets, Jobs, and Pods
Add this to your Robusta configuration (Helm values.yaml):
customPlaybooks:
- actions:
- add_deployment_lines_to_grafana:
grafana_api_key: '********'
grafana_dashboard_uid: 09ec8aa1e996d6ffcd6817bbaff4db1b
grafana_url: http://grafana.namespace.svc
triggers:
- on_deployment_update: {}
The above is an example. Try customizing the trigger and parameters.
- grafana_api_key (str)
grafana key with write permissions.
- grafana_dashboard_uid (str)
dashboard ID as it appears in the dashboard's url
- grafana_url (str)
http(s) url of grafana or None for autodetection of an in-cluster grafana
- grafana_dashboard_panel (str)
when present, annotations will be added only to panels with this text in their title.
- cluster_name (str)
written as one of the annotation's tags
- cluster_zone (str)
- custom_tags (str list)
custom tags to add to the annotation
on_kubernetes_warning_event_delete
Resource babysitter¶
Playbook Action: resource_babysitter
Add this to your Robusta configuration (Helm values.yaml):
customPlaybooks:
- actions:
- resource_babysitter: {}
triggers:
- on_deployment_update: {}
The above is an example. Try customizing the trigger and parameters.
- ignored_namespaces (str list)
List of namespaces to ignore
on_kubernetes_warning_event_delete
Json change tracker¶
Playbook Action: json_change_tracker
Posts Kubernetes resource changes as JSON to a specified URL. This action doesn't create a finding
Add this to your Robusta configuration (Helm values.yaml):
customPlaybooks:
- actions:
- json_change_tracker:
url: string
triggers:
- on_deployment_update: {}
The above is an example. Try customizing the trigger and parameters.
- url (str)
Url that should be used in the action
- headers (str dict)
A dictionary of headers to be added to the request.
on_kubernetes_warning_event_delete