Skip to content
Readiness check for tile38 running in master < follower in kubernetes
Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
check.py

README.md

Tile38 kubernetes readiness check

this is used in a master < follower cluster setup where the followers are only "ready" when they have fully loaded the master's AOF data

Standalone:

$ python ./check.py

In kubernetes:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: tile38-read
spec:
  template:
    metadata:
      labels:
        app: tile38-read
    spec:
      containers:
        - image: "stevelacy/tile38:alpine"
          name: tile38-read
          ports:
            - containerPort: 9851
              name: tile38-read
          imagePullPolicy: Always
          readinessProbe:
            exec:
              command:
                - python
                - ./check.py
            initialDelaySeconds: 5
            periodSeconds: 5
            timeoutSeconds: 30
            failureThreshold: 5

MIT

You can’t perform that action at this time.