Giter VIP home page Giter VIP logo

cluster-controller's Introduction

CAST AI cluster controller

The official CAST AI kubernetes cluster controller written in Go

Installation

Check our official helm charts repo https://github.com/castai/castai-helm-charts

Testing

Pull requests

Each pull request builds and publishes docker image for easier code review and testing. Check relevant GitHub actions.

On existing cluster enrolled to CAST AI

Deploy cluster-controller to already connected remote cluster.

NOTE: Make sure your kubectl context is pointing to your remote cluster.

Have a configured gcloud. Make sure to docker login with

gcloud auth configure-docker gcr.io

Clone https://github.com/castai/castai-helm-charts adjacent to repo root folder. It will be used by our scripts

cd <cluster-controller-parent-directory>
git clone https://github.com/castai/castai-helm-charts gh-helm-charts

Deploy.

API_KEY=your-api-key \
API_URL=your-api-url \
CLUSTER_ID=your-cluster-id \
./hack/remote/deploy.sh

Local

API_KEY=your-api-key \
API_URL=your-api-url \
CLUSTER_ID=your-cluster-id \
KUBECONFIG=path-to-kubeconfig \
go run .

Kind

The cluster-controller can be tested locally with a full e2e flow using kind: Kubernetes in Docker.

Setup a kind cluster with a local docker registry by running the ./hack/kind/run.sh script.

Option 1. Deploy controller in Kind cluster.

  • Build your local code and push it to the local registry with ./hack/kind/build.sh.
  • Deploy the chart to the kind cluster with
    helm repo add castai-helm https://castai.github.io/helm-charts
    helm repo update
    helm template cluster-controller castai-helm/castai-cluster-controller \
      -f hack/kind/values.yaml \
      --set apiKey="your-api-key" \
      --set apiURL="your-api-url" \
      --set clusterID="your-cluster-id" | kubectl apply -f - -n castai-agent

Community

Contributing

Please see the contribution guidelines.

License

Code is licensed under the Apache License 2.0. See NOTICE.md for complete details, including software and third-party licenses and permissions.

cluster-controller's People

Contributors

anjmao avatar varnastadeus avatar aldor007 avatar fals avatar furkhat avatar valyab avatar andrejatcastai avatar stgleb avatar mjudeikis avatar tsonov avatar r0kas avatar apasyniuk avatar narunas-k avatar ernestas2k avatar undeadrat22 avatar kiriloman avatar saumas avatar matas-cast avatar

Stargazers

Adriano Santos avatar Filip Piwowarczyk avatar Kun avatar Ivan Kovalkovskyi avatar  avatar Gaurang Singh avatar  avatar Raitis avatar Leon Kuperman avatar  avatar Mourad Maatoug avatar  avatar Rachit Tibrewal avatar  avatar  avatar Augustinas Stirbis avatar  avatar

Watchers

 avatar Leon Kuperman avatar Tiberiu Gal avatar  avatar Markus Gierlinger avatar  avatar  avatar  avatar  avatar  avatar Max Twardowski avatar Jolanta avatar Ivaylo Papratilov avatar  avatar Ali AKCA avatar  avatar Darius Mejeras avatar Žilvinas Bliudžius avatar Ciprian Focșăneanu avatar Aleksander Belov avatar Roman Melnyk avatar  avatar Jakub Burghardt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.