Coder Social home page Coder Social logo

karpenter's Introduction

Karpenter

This repository will contain the terraform templates to spin up an eks cluster and deploy karpenter on your node. Provisoiners folder contains the yamls for provisioners that are used by karpenter to schedule your workloads. Under test folder, I have added example deployment files for you to observe how karpenter behaves when you scale your deployments.

---- What is Karpenter? ----

Karpenter is an open-source node provisioning project built for Kubernetes.It is tightly integrated with Kubernetes features to make sure that the right types and amounts of compute resources are available to pods as they are needed. Karpenter works by:

  1. Watching for pods that the Kubernetes scheduler has marked as unschedulable.
  2. Evaluating scheduling constraints (resource requests, nodeselectors, affinities, tolerations, and topology spread constraints) requested by the pods.
  3. Provisioning nodes that meet the requirements of the pods.
  4. Scheduling the pods to run on the new nodes.
  5. Removing the nodes when the nodes are no longer needed.
---- What are provisioners? ----

Provisioners define how Karpenter will manage unschedulable pods and expires nodes.
Karpenter schedule pods that have a status condition Unschedulable=True, which the kube scheduler sets when it fails to schedule the pod to existing capacity.
Karpenter defines a Custom Resource called a Provisioner to specify provisioning configuration.
Provisioner uses well-known Kubernetes labels to allow pods to request only certain instance types, architectures, operating systems, or other attributes when creating nodes.
A provisioner can also include time-to-live values to indicate when nodes should be deprovisioned after a set amount of time from when they were created or after they becomes empty of deployed pods.
Multiple provisioners can be configured on the same cluster.

General commands for setup

terraform init  
terraform plan  
terraform apply  

kubectl apply -f provisioners/default-provisioner.yaml  
kubectl apply -f provisioners/custom-provisioner.yaml  

kubectl apply -f test/deployment.yaml  
kubectl apply -f test/aws-cli.yaml  

kubectl scale deploy inflate --replicas 5
kuebctl scale deploy awscli --replicas 2

karpenter's People

Contributors

tgamvidushi avatar vidushi0808-hub avatar

Watchers

 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.