Skip to main content

Pause container init until required kube services are ready,

Project description

Maintainer: Joe Black <joeblack949@gmail.com>

Repository: https://www.github.com/joeblackwaslike/kubewait

Description

This project is designed to be used to pause init as an init container until required Kubernetes apps/services are up and ready.

Names passed to kubewait can be the names of Deployments or StatefulSets.

Usage

apiVersion: v1
kind: Pod
metadata:
  name: kubewait
  annotations:
    pod.beta.kubernetes.io/init-containers: |-
        [
            {
                "name": "kubewait",
                "image": "callforamerica/kubewait",
                "imagePullPolicy": "IfNotPresent",
                "args": ["app1", "app2"],
                "env": [
                    {
                        "name": "NAMESPACE",
                        "valueFrom": {
                            "fieldRef": {
                                "apiVersion": "v1",
                                "fieldPath": "metadata.namespace"
                            }
                        }
                    }
                ]
            }
        ]
spec:
  containers:
  - name: nginx
    image: nginx
    ports:
    - containerPort: 80

Project details


Release history Release notifications

This version
History Node

0.2.1

History Node

0.2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
kubewait-0.2.1.tar.gz (3.7 kB) Copy SHA256 hash SHA256 Source None Jan 25, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page