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 both of the staging and production environment. If you want to apply them only for a specific environment, put it under the folder of the environment like staging and production. 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