Class ContainerProps.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • args

        @Stability(Stable)
        public ContainerProps.Builder args​(List<String> args)
        Sets the value of ContainerProps.getArgs()
        Parameters:
        args - Arguments to the entrypoint. The docker image's CMD is used if `command` 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.

        Cannot be updated.

        Returns:
        this
      • command

        @Stability(Stable)
        public ContainerProps.Builder command​(List<String> command)
        Sets the value of ContainerProps.getCommand()
        Parameters:
        command - 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. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
        Returns:
        this
      • envFrom

        @Stability(Stable)
        public ContainerProps.Builder envFrom​(List<? extends EnvFrom> envFrom)
        Sets the value of ContainerProps.getEnvFrom()
        Parameters:
        envFrom - List of sources to populate environment variables in the container. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by the envVariables property with a duplicate key will take precedence.
        Returns:
        this
      • name

        @Stability(Stable)
        public ContainerProps.Builder name​(String name)
        Sets the value of ContainerProps.getName()
        Parameters:
        name - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.
        Returns:
        this
      • startup

        @Stability(Stable)
        public ContainerProps.Builder startup​(Probe startup)
        Sets the value of ContainerProps.getStartup()
        Parameters:
        startup - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully
        Returns:
        this
      • workingDir

        @Stability(Stable)
        public ContainerProps.Builder workingDir​(String workingDir)
        Parameters:
        workingDir - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.
        Returns:
        this