KontainerSpec

data class KontainerSpec(name: String, image: String, command: List<String>, environment: Map<String, String>, ports: List<KontainerPort>, resources: KontainerSpecResources)

Provides a platform-agnostic specification for running OCI image based containers across various backends.

Author

Scott Rossillo

See also

Constructors

Link copied to clipboard
fun KontainerSpec(name: String, image: String, command: List<String> = listOf(), environment: Map<String, String> = mapOf(), ports: List<KontainerPort>, resources: KontainerSpecResources)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int

Properties

Link copied to clipboard
val command: List<String>

The Docker entrypoint and Kubernetes command.

Link copied to clipboard
val environment: Map<String, String>

Map of environment variables to pass to the Kontainer on startup.

Link copied to clipboard
val image: String

The OCI image name and version in standard Docker form.

Link copied to clipboard
val name: String

Kontainer specification name.

Link copied to clipboard
val ports: List<KontainerPort>

A list of ports to expose on the Kontainer.

Link copied to clipboard
val resources: KontainerSpecResources