Sign inSign up

11notes/k8s-init

By 11notes

•Updated 9 days ago

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

Buildkit cache
Image
0

4.6K

11notes/k8s-init repository overview

banner

⁠K8S-INIT

size5pxpulls5px5pxswiss_made

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

⁠INTRODUCTION 📢

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.

⁠SYNOPSIS 📖

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.

⁠HELM DEPLOYMENT ✂️

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

⁠DEFAULT SETTINGS 🗃️

ParameterValueDescription
userdockeruser name
uid1000user identifier⁠
gid1000group identifier⁠
home/home directory of user docker

⁠ENVIRONMENT 📝

ParameterValueDefault
TZTime Zone⁠
DEBUGWill activate debug option for container image and app (if available)

⁠MAIN TAGS 🏷️

These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.

⁠REGISTRIES ☁️

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

⁠SOURCE 💾

⁠PARENT IMAGE 🏛️

  • [${{ json_readme_parent_image }}](${{ json_readme_parent_url }})

⁠BUILT WITH 🧰

⁠GENERAL TIPS 📌

  • Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS and to protect your endpoints
  • Use Let’s Encrypt DNS-01 challenge to obtain valid SSL certificates for your services

⁠ElevenNotes™️

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)

Tag summary

Content type

Image

Digest

sha256:273f9e01d…

Size

16.8 MB

Last updated

9 days ago

docker pull 11notes/k8s-init