All Projects → devth → k8s-labeler

devth / k8s-labeler

Licence: other
⚓️ Apply labels to Kubernetes pods on startup

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to k8s-labeler

MP4Parse
C++ library for MP4 file parsing.
Stars: ✭ 55 (+223.53%)
Mutual labels:  metadata
geometa
R tools to write, read & validate geographic metadata (OGC/ISO 19110, 19115, 19119, 19136 and 19139)
Stars: ✭ 37 (+117.65%)
Mutual labels:  metadata
LLVM-Metadata-Visualizer
LLVM Metadata Visualizer
Stars: ✭ 20 (+17.65%)
Mutual labels:  metadata
seomate
SEO, mate! It's important. That's why SEOMate provides the tools you need to craft all the meta tags, sitemaps and JSON-LD microdata you need - in one highly configurable, open and friendly package - with a super-light footprint.
Stars: ✭ 31 (+82.35%)
Mutual labels:  metadata
torrent-spider
基于DHT的p2p网络资源爬虫
Stars: ✭ 65 (+282.35%)
Mutual labels:  metadata
alpenhorn
Bootstrapping Secure Communication without Leaking Metadata
Stars: ✭ 69 (+305.88%)
Mutual labels:  metadata
metamapper
Metamapper is a data discovery and documentation platform for improving how teams understand and interact with their data.
Stars: ✭ 60 (+252.94%)
Mutual labels:  metadata
VideoMetadataProvider
Video metadata provider library (collect metadata from ExoPlayer, FFMpeg, Native Android)
Stars: ✭ 20 (+17.65%)
Mutual labels:  metadata
qiqqa-open-source
The open-sourced version of the award-winning Qiqqa research management tool for Windows (a bleeding edge dev fork) ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ☞☞☞ File any issues you find in the main repo issue tracker at https://github.com/jimmejardine/qiqqa-open-source/issues
Stars: ✭ 32 (+88.24%)
Mutual labels:  metadata
rules
One Framework to build a highly declarative and customizable UI without using templates.
Stars: ✭ 38 (+123.53%)
Mutual labels:  metadata
ghost-meta
Ghost meta allows you to store multiple meta values in a single meta record, with an API that mirrors the Metadata API. It integrates with ElasticPress to expand all ghost meta so Elasticsearch can query as normal meta too.
Stars: ✭ 18 (+5.88%)
Mutual labels:  metadata
audio-tag-analyzer
Extracts metadata music metadata found in audio files
Stars: ✭ 18 (+5.88%)
Mutual labels:  metadata
ForensicsTools
A list of free and open forensics analysis tools and other resources
Stars: ✭ 392 (+2205.88%)
Mutual labels:  metadata
thoth
Metadata management and dissemination system for Open Access books
Stars: ✭ 25 (+47.06%)
Mutual labels:  metadata
langauge
🎨 Stylize your readme files with colorful gauges
Stars: ✭ 16 (-5.88%)
Mutual labels:  metadata
processwire-imageextra
This module allows you to add additional informations to an image (for example: title, description, link, orientation and any field you may need).
Stars: ✭ 20 (+17.65%)
Mutual labels:  metadata
dswarm
an open-source data management platform for knowledge workers (https://github.com/dswarm/dswarm-documentation/wiki)
Stars: ✭ 57 (+235.29%)
Mutual labels:  metadata
dataspice
🌶️ Create lightweight schema.org descriptions of your datasets
Stars: ✭ 151 (+788.24%)
Mutual labels:  metadata
audio-metadata
A library for reading and, in the future, writing audio metadata. https://audio-metadata.readthedocs.io/
Stars: ✭ 41 (+141.18%)
Mutual labels:  metadata
Valour
An open source chat client for freedom
Stars: ✭ 52 (+205.88%)
Mutual labels:  metadata

k8s-labeler

Code Climate Docker Automated build

Intended to be used as an init container for a Kubernetes pod.

Usage

The KUBE_NAMESPACE env var is required. This must match the namespace of the pod you're running in.

Any env vars containing KUBE_LABEL_ will be applied to the pod as labels via the API. For example:

KUBE_LABEL_hostname=foobar

Would result in a label hostname: foobar on the pod.

This can be useful for setting properties from the Downward API as labels (e.g. exposing a unique label for each pod in a stateful).

Run locally

./run.sh

Kubernetes example

This init container sets a hostname label equal to the pod's name:

initContainers:
  - image: devth/k8s-labeler
    name: labeler
    env:
      - name: KUBE_NAMESPACE
        valueFrom:
          fieldRef:
            fieldPath: metadata.namespace
      - name: KUBE_LABEL_hostname
        valueFrom:
          fieldRef:
            fieldPath: metadata.name

Inspect the pod with:

kubectl get pod -l app=myapp --show-labels

NAME                     READY     STATUS    RESTARTS   AGE       LABELS
myapp-2768796676-c702s   2/2       Running   0          25m       app=myapp,hostname=myapp-2768796676-c702s,pod-template-hash=2768796676

And notice that the hostname=myapp-2768796676-c702s label is present.

License

Copyright 2017 Trevor C. Hartman

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].