Container
- name:
string- required - image:
string - imagePullPolicy:
"Always" | "Never" | "IfNotPresent"; Default:"Always"if :latest tag is specified, or "IfNotPresent" otherwise. (Can't be updated) - command:
Array<string>(entrypoint) - args:
Array<string>(entrypoint) - workingDir:
string(entrypoint) - ports:
Array- containerPort:
int32- required (port to expose on the Pod's IP address) - hostIP:
string(host IP to bind the external port to) - hostPort:
int32(port to expose on the host - most containers don't need this) - name:
string - protocol:
"UDP" | "TCP" | "SCTP"; Default:"TCP"
- containerPort:
- env:
Array- name:
string- required - value:
string - valueFrom:
- configMapKeyRef:
- key:
string- required - name:
string - optional:
boolean
- key:
- fieldRef:
- fieldPath:
metadata.name | metadata.namespace | metadata.labels['\<KEY>'] | metadata.annotations['\<KEY>'] | spec.nodeName | spec.serviceAccountName | status.hostIP | status.podIP | status.podIPs- required -string - apiVersion:
string- Default:"v1"
- fieldPath:
- configMapKeyRef:
- name:
- envFrom:
Array- configMapRef:
- name:
string - optional:
boolean
- name:
- prefix:
string
- configMapRef:
- volumeMounts:
Array- mountPath:
string- required - name:
string- required - mountPropagation:
string - readOnly:
boolean - subPath:
string
- mountPath:
- resources:
Array - livenessProbe:
Probe - readinessProbe:
Probe