Public Repository

Last pushed: a year ago
Short Description
Insert AWS metadata as Kubernetes Labels
Full Description


labelgun

Insert AWS EC2 Tags as Kubernetes Node Labels.

This is the improved version of Vungle/labelgun in several aspects:

  • DaemonSet is not required. Just launch a single pod and save the rest of your computational resources.
  • Kubernetes version v1.5.x is supported
  • Fine-grained logging
  • Private base image Vungle/kubectl is removed
  • Better developer support using Makefile and glide.yaml

Supported:

Configure

Edit the labelgun.yml with appropriate Environment Variable values for LABELGUN_ERR_THRESHOLD and LABELGUN_INTERVAL in seconds.

Launch the DaemonSet

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: labelgun
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: labelgun 
    spec:
      containers:
        - image: dailyhotel/labelgun:latest
          imagePullPolicy: Always
          name: labelgun
          env:
            - name: LABELGUN_ERR_THRESHOLD
              value: "INFO"
            - name: LABELGUN_INTERVAL
              value: "60"

kubectl create -f labelgun.yml

Docker Pull Command
Owner
dailyhotel