google_api_machine_learning v0.20.0 GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1_ContainerSpec View Source

Specify a custom container to deploy. Our ContainerSpec is a subset of the Kubernetes Container specification. https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.10/#container-v1-core

Attributes

  • args (type: list(String.t), default: nil) - Immutable. Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
  • command (type: list(String.t), default: nil) - Immutable. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
  • env (type: list(GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1_EnvVar.t), default: nil) - Immutable. List of environment variables to set in the container.
  • image (type: String.t, default: nil) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images
  • ports (type: list(GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1_ContainerPort.t), default: nil) - Immutable. List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1_ContainerSpec{
  args: [String.t()],
  command: [String.t()],
  env: [GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1_EnvVar.t()],
  image: String.t(),
  ports: [GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1_ContainerPort.t()]
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.