GithubHelp home page GithubHelp logo

kavicse87 / kube-node-labeller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iameli/kube-node-labeller

0.0 0.0 0.0 2 KB

Automatically copy EC2 tags to Kubernetes labels

Makefile 11.54% Shell 88.46%

kube-node-labeller's Introduction

kube-node-labeller

Very basic Kubernetes service, intended to be run as a DaemonSet, that copies the labels from an EC2 instance to the cooresponding labels of its Kubernetes node.

Usage:

> kubectl create -f kube-node-labeller.yaml

Results:

> kubectl get nodes -o json | jq '.items[].metadata.labels'
{
  "Environment": "cluster-name.example.com",
  "KubernetesCluster": "cluster-name",
  "Name": "cluster-name-kube-aws-controller",
  "aws-autoscaling-groupName": "cluster-name-AutoScaleController-19K49D9QJI1R3",
  "aws-cloudformation-logical-id": "AutoScaleController",
  "aws-cloudformation-stack-id": "arn-aws-cloudformation-us-west-2-051932472482-stack-cluster-name-08",
  "aws-cloudformation-stack-name": "cluster-name",
  "beta.kubernetes.io/arch": "amd64",
  "beta.kubernetes.io/instance-type": "t2.small",
  "beta.kubernetes.io/os": "linux",
  "failure-domain.beta.kubernetes.io/region": "us-west-2",
  "failure-domain.beta.kubernetes.io/zone": "us-west-2b",
  "kubernetes.io/hostname": "ip-10-0-0-216.us-west-2.compute.internal"
}
{
  "Environment": "cluster-name.example.com",
  "KubernetesCluster": "cluster-name",
  "Name": "cluster-name-kube-aws-worker",
  "aws-autoscaling-groupName": "cluster-name-AutoScaleWorker-SII0CUIA8CD6",
  "aws-cloudformation-logical-id": "AutoScaleWorker",
  "aws-cloudformation-stack-id": "arn-aws-cloudformation-us-west-2-051932472482-stack-cluster-name-08",
  "aws-cloudformation-stack-name": "cluster-name",
  "beta.kubernetes.io/arch": "amd64",
  "beta.kubernetes.io/instance-type": "c4.2xlarge",
  "beta.kubernetes.io/os": "linux",
  "failure-domain.beta.kubernetes.io/region": "us-west-2",
  "failure-domain.beta.kubernetes.io/zone": "us-west-2b",
  "kubernetes.io/hostname": "ip-10-0-0-223.us-west-2.compute.internal"
}
{
  "Environment": "cluster-name.example.com",
  "KubernetesCluster": "cluster-name",
  "Name": "cluster-name-kube-aws-worker",
  "aws-autoscaling-groupName": "cluster-name-AutoScaleWorker-SII0CUIA8CD6",
  "aws-cloudformation-logical-id": "AutoScaleWorker",
  "aws-cloudformation-stack-id": "arn-aws-cloudformation-us-west-2-051932472482-stack-cluster-name-08",
  "aws-cloudformation-stack-name": "cluster-name",
  "beta.kubernetes.io/arch": "amd64",
  "beta.kubernetes.io/instance-type": "c4.2xlarge",
  "beta.kubernetes.io/os": "linux",
  "failure-domain.beta.kubernetes.io/region": "us-west-2",
  "failure-domain.beta.kubernetes.io/zone": "us-west-2b",
  "kubernetes.io/hostname": "ip-10-0-0-233.us-west-2.compute.internal"
}

kube-node-labeller's People

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.