Skip to content

Commit

Permalink
permission and timeout changes after trying on an openshift4 cluster (#…
Browse files Browse the repository at this point in the history
…524)

permission and timeout changes after trying on an openshift4 cluster
  • Loading branch information
ryandawsonuk authored Apr 24, 2019
1 parent 993a755 commit 4529176
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ private V1.Container createEngineContainer(SeldonDeployment mlDep,PredictorSpec
.setTimeoutSeconds(2)
)
.setLivenessProbe(Probe.newBuilder().setHandler(Handler.newBuilder()
.setHttpGet(HTTPGetAction.newBuilder().setPort(IntOrString.newBuilder().setType(1).setStrVal("admin")).setPath("/ready")))
.setHttpGet(HTTPGetAction.newBuilder().setPort(IntOrString.newBuilder().setType(1).setStrVal("admin")).setPath("/live")))
.setInitialDelaySeconds(20)
.setPeriodSeconds(5)
.setFailureThreshold(3)
.setFailureThreshold(7)
.setSuccessThreshold(1)
.setTimeoutSeconds(2)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class RestClientController {

@PostConstruct
public void init(){
ready.set(true);;
ready.set(true);
}

@RequestMapping("/")
Expand Down Expand Up @@ -95,7 +95,20 @@ ResponseEntity<String> ready() {
ResponseEntity<String> responseEntity = new ResponseEntity<String>(ret, responseHeaders, httpStatus);
return responseEntity;
}


@RequestMapping("/live")
ResponseEntity<String> live() {

HttpHeaders responseHeaders = new HttpHeaders();
HttpStatus httpStatus;
String ret = "live";
httpStatus = HttpStatus.OK;

ResponseEntity<String> responseEntity = new ResponseEntity<String>(ret, responseHeaders, httpStatus);
return responseEntity;
}


@RequestMapping("/pause")
String pause() {
ready.set(false);
Expand Down
5 changes: 5 additions & 0 deletions helm-charts/seldon-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,9 @@ redis:
usePassword: false
cluster:
enabled: false
securityContext:
enabled: false
master:
securityContext:
enabled: false
single_namespace: true

0 comments on commit 4529176

Please sign in to comment.