Class KubeReplicationController.Builder

    • Method Detail

      • metadata

        @Stability(Stable)
        public KubeReplicationController.Builder metadata​(ObjectMeta metadata)
        If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages.

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

        Parameters:
        metadata - If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. This parameter is required.
        Returns:
        this
      • spec

        @Stability(Stable)
        public KubeReplicationController.Builder spec​(ReplicationControllerSpec spec)
        Spec defines the specification of the desired behavior of the replication controller.

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

        Parameters:
        spec - Spec defines the specification of the desired behavior of the replication controller. This parameter is required.
        Returns:
        this