Open your existing deployment Kubernetes YAML file for your application. Find the section where you define the containers for your pods.
Tip: You will need to create a new API Key for APImetrics by following the tutorial here and choosing Ingress as your Access Level.
Add the following snippet of code inside the containers section:
- name: darkspark-sidecar
- name: DARKSPARK_API_KEY
value: <API KEY HERE>
Replace with your newly generated API key. Remember best practices for security - your API Key should be sourced from your secrets or configmaps and not pasted directly into your YAML file.
Now, when you run your Kubernetes application, your API calls will populate the Inventory.
Updated 3 months ago