PodSpec constructor

const PodSpec({
  1. int? activeDeadlineSeconds,
  2. Affinity? affinity,
  3. bool? automountServiceAccountToken,
  4. required List<Container> containers,
  5. PodDNSConfig? dnsConfig,
  6. String? dnsPolicy,
  7. bool? enableServiceLinks,
  8. List<EphemeralContainer>? ephemeralContainers,
  9. List<HostAlias>? hostAliases,
  10. bool? hostIPC,
  11. bool? hostNetwork,
  12. bool? hostPID,
  13. String? hostname,
  14. List<LocalObjectReference>? imagePullSecrets,
  15. List<Container>? initContainers,
  16. String? nodeName,
  17. Map<String, String>? nodeSelector,
  18. PodOS? os,
  19. Map<String, String>? overhead,
  20. String? preemptionPolicy,
  21. int? priority,
  22. String? priorityClassName,
  23. List<PodReadinessGate>? readinessGates,
  24. String? restartPolicy,
  25. String? runtimeClassName,
  26. String? schedulerName,
  27. PodSecurityContext? securityContext,
  28. String? serviceAccount,
  29. String? serviceAccountName,
  30. bool? setHostnameAsFQDN,
  31. bool? shareProcessNamespace,
  32. String? subdomain,
  33. int? terminationGracePeriodSeconds,
  34. List<Toleration>? tolerations,
  35. List<TopologySpreadConstraint>? topologySpreadConstraints,
  36. List<Volume>? volumes,
})

The main 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.hostname,
  this.imagePullSecrets,
  this.initContainers,
  this.nodeName,
  this.nodeSelector,
  this.os,
  this.overhead,
  this.preemptionPolicy,
  this.priority,
  this.priorityClassName,
  this.readinessGates,
  this.restartPolicy,
  this.runtimeClassName,
  this.schedulerName,
  this.securityContext,
  this.serviceAccount,
  this.serviceAccountName,
  this.setHostnameAsFQDN,
  this.shareProcessNamespace,
  this.subdomain,
  this.terminationGracePeriodSeconds,
  this.tolerations,
  this.topologySpreadConstraints,
  this.volumes,
});