Your perfect side car image to prepare everything for your k8s pods.
4.6K

Your perfect side car image to prepare everything for your k8s pods.
Tired of writing your own scripts to make sure the permissions are set correctly on your PVCs or that damn database is up before your app is? Worry not, simply use this image and it’s many functions to ease your pain and make your life simpler.
What can I do with this? This image will provide you with some helper functions to prepare your container images on k8s, like setting correct permissions on PVCs or waiting for a database to be up before starting the app.
apiVersion: apps/v1
kind: Deployment
spec:
template:
spec:
initContainers:
- name: chown
image: "11notes/k8s-init"
command:
- sh
- -c
- |
eleven k8s chown /postgres {{ .Values.containerSecurityContext.runAsUser | default 1000 }} {{ .Values.containerSecurityContext.runAsGroup | default 1000 }}
volumeMounts:
- name: etc
mountPath: /postgres/etc
- name: var
mountPath: /postgres/var
securityContext:
runAsUser: 0
| Parameter | Value | Description |
|---|---|---|
user | docker | user name |
uid | 1000 | user identifier |
gid | 1000 | group identifier |
home | / | home directory of user docker |
| Parameter | Value | Default |
|---|---|---|
TZ | Time Zone | |
DEBUG | Will activate debug option for container image and app (if available) |
These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.
docker pull 11notes/k8s-init:0.0.2
docker pull ghcr.io/11notes/k8s-init:0.0.2
docker pull quay.io/11notes/k8s-init:0.0.2
This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the releases for breaking changes. If you have any problems with using this image simply raise an issue, thanks. If you have a question or inputs please create a new discussion instead of an issue. You can find all my other repositories on github.
created 24.09.2026, 00:50:20 (CET)
Content type
Image
Digest
sha256:273f9e01d…
Size
16.8 MB
Last updated
9 days ago
docker pull 11notes/k8s-init