Container
Container
JSON Example
{
"image": "string",
"livenessProbe": {
"failureThreshold": 0,
"tcpSocket": {
"port": "string"
},
"timeoutSeconds": 0,
"periodSeconds": 0,
"successThreshold": 0,
"initialDelaySeconds": 0,
"exec": {
"command": [
"string"
]
},
"httpGet": {
"path": "string",
"scheme": "string",
"port": "string",
"host": "string"
}
},
"imagePullPolicy": "string",
"stdin": false,
"terminationMessagePath": "string",
"workingDir": "string",
"resources": {},
"securityContext": {
"privileged": false,
"runAsUser": 0,
"runAsNonRoot": false,
"readOnlyRootFilesystem": false
},
"ports": [
{
"protocol": "string",
"hostIP": "string",
"name": "string",
"containerPort": 0,
"hostPort": 0
}
],
"env": [
{
"name": "string",
"value": "string",
"valueFrom": {
"secretKeyRef": {
"name": "string",
"key": "string"
},
"resourceFieldRef": {
"divisor": "string",
"resource": "string",
"containerName": "string"
},
"fieldRef": {
"apiVersion": "string",
"fieldPath": "string"
},
"configMapKeyRef": {
"name": "string",
"key": "string"
}
}
}
],
"command": [
"string"
],
"volumeMounts": [
{
"mountPath": "string",
"name": "string",
"readOnly": false,
"subPath": "string"
}
],
"args": [
"string"
],
"lifecycle": {
"preStop": {
"tcpSocket": {
"port": "string"
},
"exec": {
"command": [
"string"
]
},
"httpGet": {
"path": "string",
"scheme": "string",
"port": "string",
"host": "string"
}
},
"podStart": {
"tcpSocket": {
"port": "string"
},
"exec": {
"command": [
"string"
]
},
"httpGet": {
"path": "string",
"scheme": "string",
"port": "string",
"host": "string"
}
}
},
"name": "string",
"tty": false,
"readinessProbe": {
"failureThreshold": 0,
"tcpSocket": {
"port": "string"
},
"timeoutSeconds": 0,
"periodSeconds": 0,
"successThreshold": 0,
"initialDelaySeconds": 0,
"exec": {
"command": [
"string"
]
},
"httpGet": {
"path": "string",
"scheme": "string",
"port": "string",
"host": "string"
}
},
"stdinOnce": false
}
string
image
Optional
image
string
imagePullPolicy
Optional
imagePullPolicy
boolean
stdin
Optional
stdin
string
terminationMessagePath
Optional
terminationMessagePath
string
workingDir
Optional
workingDir
array of string
command
Optional
command
array of string
args
Optional
args
string
name
Optional
name
boolean
tty
Optional
tty
boolean
stdinOnce
Optional
stdinOnce