Add grpc health check service
Fixes: #615 Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
a160a6a068
commit
e663cbddf5
6 changed files with 281 additions and 0 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
_ "github.com/docker/containerd/linux"
|
||||
_ "github.com/docker/containerd/services/content"
|
||||
_ "github.com/docker/containerd/services/execution"
|
||||
_ "github.com/docker/containerd/services/healthcheck"
|
||||
_ "github.com/docker/containerd/snapshot/btrfs"
|
||||
_ "github.com/docker/containerd/snapshot/overlay"
|
||||
)
|
||||
|
|
|
@ -125,6 +125,7 @@ func main() {
|
|||
return err
|
||||
}
|
||||
}
|
||||
log.G(global).Info("starting GRPC API server...")
|
||||
if err := serveGRPC(server); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue