Skip to content

Commit

Permalink
Add registry liveness probe
Browse files Browse the repository at this point in the history
Add liveness probe to 'openshift admin registry'
  • Loading branch information
Andy Goldstein committed Apr 16, 2015
1 parent 922da05 commit a243c99
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/cmd/experimental/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
kclientcmd "github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd"
cmdutil "github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/cmd/util"
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/golang/glog"
"github.com/spf13/cobra"

Expand Down Expand Up @@ -198,6 +199,16 @@ func NewCmdRegistry(f *clientcmd.Factory, parentName, name string, out io.Writer
},
},
Privileged: mountHost,
LivenessProbe: &kapi.Probe{
InitialDelaySeconds: 3,
TimeoutSeconds: 5,
Handler: kapi.Handler{
HTTPGet: &kapi.HTTPGetAction{
Path: "/healthz",
Port: util.NewIntOrStringFromInt(5000),
},
},
},
},
},
Volumes: []kapi.Volume{
Expand Down

0 comments on commit a243c99

Please sign in to comment.