-
Notifications
You must be signed in to change notification settings - Fork 6
Environment
Apollo can manage multiple Kubernetes clusters, and multiple environment on each cluster.
An Environment is defined from a pair of Kubernetes master and namespace.
Apollo uses the HTTP protocol for accessing your Kubernetes master. So you should create a service account in Kubernetes, and extract the token from it (and decode the Base64 in the response). Look at "Service Account Tokens" section of this page: https://kubernetes.io/docs/admin/authentication/
name, geo_region and availability are being used in the transformers section (More on that on Transformers page), and are mainly for convenience.
Another feature of Apollo is being able to use namespaces on the same cluster as a different environment.
The issue that arises with this is that the nodePort exposed in the service should be unique, across the Kubernetes cluster, and it's not logical to create a new service for this.
service_port_coefficient is here for you. The value that is present there, will be added to each nodePort that is exposed in the service.
For example, if the service_port_coefficient is 300 on the deployed environment, and my service is configured to use nodePort of 30000, then the nodePort on this environment will be changed to 30300.