Skip to content

This repo contains a sample app exposing a gRPC health endpoint to demo Kubernetes gRPC probes.

Notifications You must be signed in to change notification settings

nmeisenzahl/grpc-health

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grpc-health

This repo contains a sample app exposing a health endpoint by implementing grpc_health_v1. Usecase is to demo the gRPC readiness and liveness probes introduced in Kubernetes 1.23.

cat <<EOF | kubectl apply -f -
apiVersion: apps/v1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    app: grpc-health
  name: grpc-health
spec:
  replicas: 1
  selector:
    matchLabels:
      app: grpc-health
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: grpc-health
    spec:
      containers:
      - image: ghcr.io/nmeisenzahl/grpc-health/grpc-health:latest
        imagePullPolicy: Always
        name: grpc-health
        ports:
        - containerPort: 3000
        resources: {}
        livenessProbe:
            grpc:
                port: 3000
            initialDelaySeconds: 10
        readinessProbe:
            grpc:
                port: 3000
            initialDelaySeconds: 10
status: {}
EOF

About

This repo contains a sample app exposing a gRPC health endpoint to demo Kubernetes gRPC probes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages