Skip to content

Commit

Permalink
adding liveness and readiness probe (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
akoserwal authored Feb 8, 2024
1 parent b88661a commit e6efc8f
Show file tree
Hide file tree
Showing 19 changed files with 685 additions and 13 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ all:
make config;
make generate;


db:
./spicedb/start-postgresql.sh
.PHONY: db
Expand All @@ -88,6 +87,11 @@ kind/spicedb:
./spicedb-kind-setup/setup.sh
.PHONY: kind/spicedb

.PHONY: run
# run api locally
run:
./bin/ciam-rebac -conf configs

# show help
help:
@echo ''
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Kratos Project Template
# Rebac Service

## Build
`make build`

## Run
`make run`

## Install Kratos
```
Expand Down
310 changes: 310 additions & 0 deletions api/health/v1/health.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions api/health/v1/health.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
syntax = "proto3";

package api.health.v1;

import "google/api/annotations.proto";

option go_package = "ciam-rebac/api/health/v1;v1";
option java_multiple_files = true;
option java_package = "api.health.v1";

service Health {
rpc GetLivez (GetLivezRequest) returns (GetLivezReply){
option (google.api.http) = {
get: "/livez"
};
};
rpc GetReadyz (GetReadyzRequest) returns (GetReadyzReply){
option (google.api.http) = {
get: "/readyz"
};
};
}

message GetLivezRequest {}
message GetLivezReply {}

message GetReadyzRequest {}
message GetReadyzReply {}
Loading

0 comments on commit e6efc8f

Please sign in to comment.