Attaching a sidecar

This page shows how you can add a sidecar container.

sidecar:
repository: debian
tag: stable-slim

Check the Kubernetes manifest:

helm template my-release onechart/onechart -f values.yaml

Attaching a sidecar for debugging

This section shows how you can add a sidecar container with debug tools installed.

The debug sidecar container will have access to the same resources as your app container, so you don't have to inflate your app container with debug tools.

The following example adds a default debug container (a debian image) to your deployment, and you can verify that this container will have access to the defined volume.

sidecar:
repository: debian
tag: stable-slim
shell: "/bin/bash"
command: "while true; do sleep 30; done;"

volumes:
- name: data
path: /data
size: 1Gi
storageClass: local-path

Check the Kubernetes manifest:

helm template my-release onechart/onechart -f values.yaml