Skip to content

puffpuf/cast-k8s-agent

 
 

Repository files navigation

CAST AI Kubernetes Agent

A component that connects your Kubernetes cluster to the CAST AI platform to enable Kubernetes automation and cost optimization features.

Getting started

Visit the docs to connect your cluster.

Helm chart

The helm chart for the CAST AI Kubernetes agent is published in the castai/helm-charts repo.

Contributing

Run the agent in your IDE

You must provide the these environment variables:

API_KEY=your-castai-api-key
API_URL=api.cast.ai
KUBECONFIG=/path/to/kubeconfig

Then, based on the Kubernetes provider, you need to provide additional environment variables.

AKS

PROVIDER=aks
AKS_LOCATION=your-cluster-location
AKS_SUBSCRIPTION_ID=your-cluster-subscription-id
AKS_NODE_RESOURCE_GROUP=your-cluster-resource-group

EKS

PROVIDER=eks
EKS_ACCOUNT_ID=your-aws-account-id
EKS_REGION=your-cluster-region
EKS_CLUSTER_NAME=your-cluster-name

kOps

PROVIDER=kops

GKE

PROVIDER=gke
GKE_PROJECT_ID=your-gke-project-id
GKE_CLUSTER_NAME=your-cluster-name
GKE_REGION=your-cluster-region
GKE_LOCATION=your-cluster-location

note, when using zonal GKE_REGION and GKE_LOCATION is often the same, i.e. europe-west3-a

Issues

If you encounter "Error: no Auth Provider found for name "gcp"", add a discard import to the main fn:

import (
    _ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
)

Release procedure (with automatic release notes)

Head to the GitHub new release page, create a new tag at the top, and click Generate Release Notes at the middle-right. image

Licence

Apache 2.0 License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.5%
  • Other 0.5%