Class KubePodTemplate.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static KubePodTemplate.Builder create​(software.constructs.Construct scope,
                                                     String id)
        Parameters:
        scope - the scope in which to define this object. This parameter is required.
        id - a scope-local name for the object. This parameter is required.
        Returns:
        a new instance of KubePodTemplate.Builder.
      • metadata

        @Stability(Stable)
        public KubePodTemplate.Builder metadata​(ObjectMeta metadata)
        Standard object's metadata.

        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

        Parameters:
        metadata - Standard object's metadata. This parameter is required.
        Returns:
        this
      • template

        @Stability(Stable)
        public KubePodTemplate.Builder template​(PodTemplateSpec template)
        Template defines the pods that will be created from this pod template.

        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

        Parameters:
        template - Template defines the pods that will be created from this pod template. This parameter is required.
        Returns:
        this