Kubernetes
How to install Glide into a Kubernetes Cluster
EinStack provides you with an official flexible Helm chart to install Glide into a Kubernetes cluster.
Before moving on, please make sure you have Helm CLI and kubectl installed locally.
Add EinStack chart repository
helm repo add einstack https://einstack.github.io/helm-charts
helm repo update
Create a Kubernetes Secret
Before installing the Helm chart, you need to create a Kubernetes secret with your API keys like:
kubectl create secret generic api-keys --from-literal=OPENAI_API_KEY=sk-abcdXYZ
By default, Glide’s chart comes with a configuration that contains one language router with one OpenAI model that requires to put API key under the OPENAI_API_KEY
environment variable.
Use the Secret
Then, you need to create a custom values.yaml
file to override the secret name like:
# save as custom.values.yaml, for example
glide:
apiKeySecret: "api-keys"
Deploy Glide's chart 🚀
Finally, you should be able to install Glide’s chart via:
helm upgrade glide-gateway einstack/glide --values custom.values.yaml --install
Please make sure your kubectl context is pointing to the right cluster and authenticated to do the deployment.
Once the deployment is done, you should be able to see a new glide-gateway
deployment and corresponding pods in the namespace you used during the deployment.