does spicedb have an HTTP health check
# spicedb
b
does spicedb have an HTTP health check endpoint? our envoy sidecars need to healthcheck the pod running the spicedb image using either HTTP or TCP but we suspect using the latter against the HTTP port 8443 prevents normal HTTP traffic from resolving somehow
eh i don't think this is it anymore
j
we expose the gRPC health service, so it should be exposed in HTTP as well
the container contains an auto-health check as well
l
Copy code
yaml
  spicedb:
    image: authzed/spicedb
    command: serve 
    environment:
      - "SPICEDB_GRPC_PRESHARED_KEY=randomkey"
    ports:
      - '50051:50051'
    healthcheck:
      test: ["CMD", "grpc_health_probe", "-v", "--addr", "localhost:50051", "-connect-timeout", "180s"]
This is how we ensure in test env that its ready
227 Views