Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
119 lines (119 sloc) 3.21 KB
{
"description": "Handler defines a specific action that should be taken",
"properties": {
"exec": {
"description": "ExecAction describes a \"run in container\" action.",
"properties": {
"command": {
"description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.",
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
}
}
},
"httpGet": {
"description": "HTTPGetAction describes an action based on HTTP Get requests.",
"required": [
"port"
],
"properties": {
"host": {
"description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.",
"type": [
"string",
"null"
]
},
"httpHeaders": {
"description": "Custom headers to set in the request. HTTP allows repeated headers.",
"type": [
"array",
"null"
],
"items": {
"description": "HTTPHeader describes a custom header to be used in HTTP probes",
"required": [
"name",
"value"
],
"properties": {
"name": {
"description": "The header field name",
"type": "string"
},
"value": {
"description": "The header field value",
"type": "string"
}
}
}
},
"path": {
"description": "Path to access on the HTTP server.",
"type": [
"string",
"null"
]
},
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
},
"scheme": {
"description": "Scheme to use for connecting to the host. Defaults to HTTP.",
"type": [
"string",
"null"
]
}
}
},
"tcpSocket": {
"description": "TCPSocketAction describes an action based on opening a socket",
"required": [
"port"
],
"properties": {
"host": {
"description": "Optional: Host name to connect to, defaults to the pod IP.",
"type": [
"string",
"null"
]
},
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
}
},
"$schema": "http://json-schema.org/schema#",
"type": "object"
}
You can’t perform that action at this time.