Skip to content

Commit

Permalink
adding liveness and readiness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
akoserwal committed Feb 7, 2024
1 parent 1bfa8b5 commit bdc622c
Show file tree
Hide file tree
Showing 19 changed files with 687 additions and 12 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ all:
make config;
make generate;

.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 bdc622c

Please sign in to comment.