GAP Documentation
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Add custom resources

Sometimes, the basic deployment flow is not enough for your project requirements. Therefore, you can define custom components in your repository to achieve that.

Setup

To create custom component for your deployment, you only need to follow a few steps:

First you need to create your custom manifests and put them under the gap folder. If you put them in the root of your gap folder they will be applied for all environments. If you want to apply them only for a specific environment, put it under the folder of that environment (e.g. s-eu1-01, p-eu1-01, s-us1-01, p-us1-01) or use staging-defaults / production-defaults for overrides that apply to all staging or all production clusters respectively. It’s important to prefix your manifest files names with gap_, otherwise they wont be applied.

Secondly if your custom components have environment variables, you need create a secret resource with gap-cli and refer to it in your manifests e.g.:

Example: in-cluster redis.

If you have troubles creating secrets for your deployment with gap-cli, please see: Secret handling with GAP CLI