Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding liveness and readiness probe #11

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading