This package provide kosko components and helpers for common Kubernetes use-cases in the SocialGouv GitOps infrastructure.
Components are configured with gitlab-friendly defaults and annotations and are fully customisable.
Using TypeScript, we can use the power of JavaScript and validates our manifests against kubernetes-models API, use JEST snapshot testing and have IDE autocompletion.
Its important to read the kosko documentation before proceeding.
In your project, the .k8s
folder holds all the kosko configuration.
You can clone a sample folder from our template :
npx degit "SocialGouv/kosko-charts/templates/sample#master" .k8s
Add to your project package.json
scripts : "k8s": "yarn --silent --cwd .k8s"
Now you can generate your manifests locally or from the CI:
yarn k8s generate --env prod
See kosko documentation for more usage examples
Generated using TypeDoc