Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Shawarma Sidecar Injection

For larger deployments, it's preferred to inject Shawarma automatically based on annotations. This simplies deployment pipelines by providing a standarized Shawarma configuration.


  1. Generate certificates for the webhook. Example.
  2. Update k8s-sidecar-injector.yaml with the Base64 encoded certificate, key, and CA certificate in their three respective locations.
  3. kubectl apply -f .\k8s-sidecar-injector.yaml
  4. Modify rbac.yaml for each namespace which will use Shawarma (it is setup for default), and apply using kubectl apply.


To use, simply include a annotation on a pod. This annotation should reference the service which should be monitored to determine application state. See here for a full list of available annotations.

An example pod deployment can be found in (./test-pod.yaml).

You can’t perform that action at this time.