node2pod

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 17 Imported by: 0

README

node2pod

A dead simple controller with one job: copy certain labels on kubernetes nodes to all of the pods they are running.

Example deployment

This deployment will project the topology.kubernetes.io/region and topology.kubernetes.io/zone labels from nodes to pods. See deploy/ for complete resources, including RBAC.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: node2pod
  namespace: kube-system
spec:
  replicas: 1
  selector:
    matchLabels:
      app: node2pod
  template:
    metadata:
      labels:
        app: node2pod
    spec:
      containers:
      - command:
        - /bin/node2pod
        - --label=topology.kubernetes.io/region
        - --label=topology.kubernetes.io/zone
        image: quay.io/wish/node2pod:main
        name: node2pod

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL