Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 984 Bytes

File metadata and controls

14 lines (9 loc) · 984 Bytes

Scripts

Rancher Monitoring

  • v1 to v2 Monitoring Migration Small helper scripts to migrate alerts and Grafana dashboards from Rancher monitoring v1 to v2 (introduced in Rancher 2.5). These require the use of a Rancher Bearer API Token with no scope.

OPA Mutating Webhook Examples

  • Add K8s Namespace into Rancher Project This webhook will mutate any Namespace with a specified label and add it into the specified Rancher project. The Rancher Project ID is not the Project's spec.displayName, it is the metadata.name field (beginning with p-).

  • Inject proxy certs & values Every container has its own env & certificate store. These webhook manifests will append specified HTTP/S proxy values and certificates to every pod requiring them. These examples are Namespace-scoped, but can easily be changed to Cluster-scoped if needed.