PodSpec

PodSpec
PodSpec
JSON Example
{
    "dnsPolicy": "string",
    "nodeName": "string",
    "terminationGracePeriodSeconds": 0,
    "hostNetwork": "string",
    "volumes": [
        {
            "gcePersistentDisk": {
                "partition": 0,
                "readOnly": false,
                "pdName": "string",
                "fsType": "string"
            },
            "photonPersistentDisk": {
                "pdID": "string",
                "fsType": "string"
            },
            "quobyte": {
                "volume": "string",
                "registry": "string",
                "readOnly": false,
                "user": "string",
                "group": "string"
            },
            "azureDisk": {
                "diskName": "string",
                "readOnly": false,
                "diskURI": "string",
                "fsType": "string"
            },
            "cinder": {
                "volumeID": "string",
                "readOnly": false,
                "fsType": "string"
            },
            "downwardAPI": {
                "defaultMode": 0,
                "items": [
                    {
                        "mode": 0,
                        "path": "string",
                        "resourceFieldRef": {
                            "divisor": "string",
                            "resource": "string",
                            "containerName": "string"
                        },
                        "fieldRef": {
                            "apiVersion": "string",
                            "fieldPath": "string"
                        }
                    }
                ]
            },
            "azureFile": {
                "secretName": "string",
                "readOnly": false,
                "shareName": "string"
            },
            "awsElasticBlockStore": {
                "partition": 0,
                "volumeID": "string",
                "readOnly": false,
                "fsType": "string"
            },
            "flexVolume": {
                "driver": "string",
                "secretRef": {
                    "name": "string"
                },
                "readOnly": false,
                "fsType": "string"
            },
            "secret": {
                "secretName": "string",
                "defaultMode": 0,
                "items": [
                    {
                        "mode": 0,
                        "path": "string",
                        "key": "string"
                    }
                ]
            },
            "iscsi": {
                "iscsiInterface": "string",
                "lun": 0,
                "iqn": "string",
                "readOnly": false,
                "fsType": "string",
                "targetPortal": "string"
            },
            "cephfs": {
                "path": "string",
                "secretRef": {
                    "name": "string"
                },
                "secretFile": "string",
                "readOnly": false,
                "user": "string",
                "monitors": [
                    "string"
                ]
            },
            "rbd": {
                "image": "string",
                "pool": "string",
                "readOnly": false,
                "sourceRef": {
                    "name": "string"
                },
                "fsType": "string",
                "user": "string",
                "keyring": "string",
                "monitors": [
                    "string"
                ]
            },
            "configMap": {
                "defaultMode": 0,
                "name": "string",
                "items": [
                    {
                        "mode": 0,
                        "path": "string",
                        "key": "string"
                    }
                ]
            },
            "emptyDir": {
                "medium": "string"
            },
            "name": "string",
            "nfs": {
                "server": "string",
                "path": "string",
                "readOnly": false
            },
            "glusterfs": {
                "path": "string",
                "endpoints": "string",
                "readOnly": false
            },
            "persistentVolumeClaim": {
                "claimName": "string",
                "readOnly": "string"
            },
            "gitRepo": {
                "repository": "string",
                "directory": "string",
                "revision": "string"
            },
            "vsphereVolume": {
                "volumePath": "string",
                "fsType": "string"
            },
            "fc": {
                "targetWWNs": [
                    "string"
                ],
                "lun": 0,
                "readOnly": false,
                "fsType": "string"
            },
            "hostPath": {
                "path": "string"
            }
        }
    ],
    "hostIPC": false,
    "securityContext": {
        "runAsUser": 0,
        "fsGroup": 0,
        "supplementalGroups": [
            0
        ],
        "runAsNonRoot": false
    },
    "restartPolicy": "string",
    "hostname": "string",
    "subdomain": "string",
    "containers": [
        {
            "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
        }
    ],
    "activeDeadlineSeconds": 0,
    "hostPID": false
}
string
dnsPolicy
Optional

dnsPolicy

Possible values are : ClusterFirst, Default,
string
nodeName
Optional

nodeName

integer As int64 As int64
terminationGracePeriodSeconds
Optional

terminationGracePeriodSeconds

string
hostNetwork
Optional

hostNetwork

array of Volume
volumes
Optional

volumes

boolean
hostIPC
Optional

hostIPC

securityContext
Optional

securityContext

string
restartPolicy
Optional

restartPolicy

Possible values are : Always, OnFailure, Never,
object
nodeSelector
Optional

nodeSelector

string
hostname
Optional

hostname

string
subdomain
Optional

subdomain

array of Container
containers
Optional

containers

integer As int64 As int64
activeDeadlineSeconds
Optional

activeDeadlineSeconds

boolean
hostPID
Optional

hostPID