When integrating your Kubernetes application with the Replicated Integration API some additional steps must be taken to inject the necessary environment variables into you application containers.
More specifically, you will need to manually inject the environment variables REPLICATED_INTEGRATIONAPI
and REPLICATED_STATSD_ADDRESS
into your containers using template functions found in our docs.
Example:
...
---
# kind: scheduler-kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
template:
spec:
containers:
- name: frontend
image: gcr.io/somebigbank/sbb-frontend:1.2.0
env:
- name: REPLICATED_INTEGRATIONAPI
value: {{repl PremkitAPIAddress }}
- name: REPLICATED_STATSD_ADDRESS
value: {{repl StatsdAddress }}
ports:
- containerPort: 80
...