PodSpec constructor
const
PodSpec({
- int? activeDeadlineSeconds,
- Affinity? affinity,
- bool? automountServiceAccountToken,
- required List<
Container> containers, - PodDNSConfig? dnsConfig,
- String? dnsPolicy,
- bool? enableServiceLinks,
- List<
EphemeralContainer> ? ephemeralContainers, - List<
HostAlias> ? hostAliases, - bool? hostIPC,
- bool? hostNetwork,
- bool? hostPID,
- bool? hostUsers,
- String? hostname,
- List<
LocalObjectReference> ? imagePullSecrets, - List<
Container> ? initContainers, - String? nodeName,
- Map<
String, String> ? nodeSelector, - PodOS? os,
- Map<
String, String> ? overhead, - String? preemptionPolicy,
- int? priority,
- String? priorityClassName,
- List<
PodReadinessGate> ? readinessGates, - List<
PodResourceClaim> ? resourceClaims, - String? restartPolicy,
- String? runtimeClassName,
- String? schedulerName,
- List<
PodSchedulingGate> ? schedulingGates, - PodSecurityContext? securityContext,
- String? serviceAccount,
- String? serviceAccountName,
- bool? setHostnameAsFQDN,
- String? subdomain,
- int? terminationGracePeriodSeconds,
- List<
Toleration> ? tolerations, - List<
TopologySpreadConstraint> ? topologySpreadConstraints, - List<
Volume> ? volumes,
Default constructor.
Implementation
const PodSpec({
this.activeDeadlineSeconds,
this.affinity,
this.automountServiceAccountToken,
required this.containers,
this.dnsConfig,
this.dnsPolicy,
this.enableServiceLinks,
this.ephemeralContainers,
this.hostAliases,
this.hostIPC,
this.hostNetwork,
this.hostPID,
this.hostUsers,
this.hostname,
this.imagePullSecrets,
this.initContainers,
this.nodeName,
this.nodeSelector,
this.os,
this.overhead,
this.preemptionPolicy,
this.priority,
this.priorityClassName,
this.readinessGates,
this.resourceClaims,
this.restartPolicy,
this.runtimeClassName,
this.schedulerName,
this.schedulingGates,
this.securityContext,
this.serviceAccount,
this.serviceAccountName,
this.setHostnameAsFQDN,
this.shareProcessNamespace,
this.subdomain,
this.terminationGracePeriodSeconds,
this.tolerations,
this.topologySpreadConstraints,
this.volumes,
});