cleanup
This commit is contained in:
parent
99867ff168
commit
568260c748
2 changed files with 3 additions and 3 deletions
|
@ -391,7 +391,7 @@ spec:
|
|||
terminationGracePeriodSeconds: 5
|
||||
containers:
|
||||
- name: server
|
||||
image: gcr.io/mokeefe/cartservice:august
|
||||
image: gcr.io/google-samples/microservices-demo/cartservice:v0.1.1
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 7070
|
||||
|
|
|
@ -14,10 +14,10 @@ namespace cartservice {
|
|||
}
|
||||
|
||||
public override Task<HealthCheckResponse> Check(HealthCheckRequest request, ServerCallContext context){
|
||||
var result = Task.FromResult(new HealthCheckResponse {
|
||||
Console.WriteLine ("Checking CartService Health");
|
||||
return Task.FromResult(new HealthCheckResponse {
|
||||
Status = dependency.Ping() ? HealthCheckResponse.Types.ServingStatus.Serving : HealthCheckResponse.Types.ServingStatus.NotServing
|
||||
});
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue