Skip to content

Docker container to apply AWS metadata to Kubernetes nodes.

Notifications You must be signed in to change notification settings

PeriscopeData/docker-aws-node-labels

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A small Alpine based container that fetched AWS metadata for the instance it executes on and applies it as node labels in Kubernetes. Ideally used by dropping into the /etc/kubernetes/manifests directory a pod spec like:

apiVersion: v1
kind: Pod
metadata:
  name: aws-node-labels
  namespace: kube-system
spec:
  hostNework: true
  restartPolicy: OnFailure
  containers:
    - name: apply-labels
      image: scopej/aws-node-labels:latest
      env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
      volumeMounts:
        - mountPath: /etc/kubernetes/ssl
          name: kubernetes-ssl
          readOnly: true
  volumes:
    - name: kubernetes-ssl
      hostPath:
        path: /etc/kubernetes/ssl

About

Docker container to apply AWS metadata to Kubernetes nodes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%