Exemple #1
0
 def Args(parser):
     _Args(parser)
     flags.AddClusterAutoscalingFlags(parser)
     flags.AddNodePoolAutoprovisioningFlag(parser, hidden=False)
     flags.AddLocalSSDAndLocalSSDVolumeConfigsFlag(parser,
                                                   for_node_pool=True)
     flags.AddBootDiskKmsKeyFlag(parser)
     flags.AddPreemptibleFlag(parser, for_node_pool=True)
     flags.AddEnableAutoRepairFlag(parser,
                                   for_node_pool=True,
                                   for_create=True)
     flags.AddMinCpuPlatformFlag(parser, for_node_pool=True)
     flags.AddWorkloadMetadataFromNodeFlag(parser)
     flags.AddNodeTaintsFlag(parser, for_node_pool=True)
     flags.AddNodePoolNodeIdentityFlags(parser)
     flags.AddMaxPodsPerNodeFlag(parser, for_node_pool=True)
     flags.AddSandboxFlag(parser)
     flags.AddNodeGroupFlag(parser)
     flags.AddEnableAutoUpgradeFlag(parser,
                                    for_node_pool=True,
                                    default=True)
     flags.AddLinuxSysctlFlags(parser, for_node_pool=True)
     flags.AddSurgeUpgradeFlag(parser, for_node_pool=True, default=1)
     flags.AddMaxUnavailableUpgradeFlag(parser,
                                        for_node_pool=True,
                                        is_create=True)
     flags.AddNodePoolLocationsFlag(parser, for_create=True)
     flags.AddNodeConfigFlag(parser)
     flags.AddReservationAffinityFlags(parser, for_node_pool=True)
Exemple #2
0
    def Args(parser):
        _Args(parser)
        group = parser.add_mutually_exclusive_group(required=True)

        node_management_group = group.add_argument_group('Node management')
        flags.AddEnableAutoRepairFlag(node_management_group,
                                      for_node_pool=True)
        flags.AddEnableAutoUpgradeFlag(node_management_group,
                                       for_node_pool=True)

        autoscaling_group = flags.AddClusterAutoscalingFlags(group,
                                                             hidden=False)
        flags.AddNodePoolAutoprovisioningFlag(autoscaling_group, hidden=False)

        surge_upgrade_group = group.add_argument_group('Upgrade settings')
        flags.AddSurgeUpgradeFlag(surge_upgrade_group, for_node_pool=True)
        flags.AddMaxUnavailableUpgradeFlag(surge_upgrade_group,
                                           for_node_pool=True)

        flags.AddWorkloadMetadataFlag(group, use_mode=False)

        flags.AddNodePoolLocationsFlag(group)

        flags.AddSystemConfigFlag(group, hidden=False)

        # TODO(b/178746997): Unhide prior to Beta release.
        flags.AddNodeLabelsFlag(group,
                                for_node_pool=True,
                                for_update=True,
                                hidden=True)
        flags.AddNodeTaintsFlag(group,
                                for_node_pool=True,
                                for_update=True,
                                hidden=True)
        flags.AddTagsNodePoolUpdate(group, hidden=True)
Exemple #3
0
 def Args(parser):
     _Args(parser)
     flags.AddAcceleratorArgs(parser,
                              enable_gpu_partition=True,
                              enable_gpu_sharing=True,
                              enable_gpu_deprecated_fields=True)
     flags.AddClusterAutoscalingFlags(parser, location_policy_present=True)
     flags.AddNodePoolAutoprovisioningFlag(parser, hidden=False)
     flags.AddLocalSSDsAlphaFlags(parser, for_node_pool=True)
     flags.AddBootDiskKmsKeyFlag(parser)
     flags.AddPreemptibleFlag(parser, for_node_pool=True)
     flags.AddEnableAutoRepairFlag(parser,
                                   for_node_pool=True,
                                   for_create=True)
     flags.AddMinCpuPlatformFlag(parser, for_node_pool=True)
     flags.AddWorkloadMetadataFlag(parser, use_mode=False)
     flags.AddNodeTaintsFlag(parser, for_node_pool=True)
     flags.AddNodePoolNodeIdentityFlags(parser)
     flags.AddMaxPodsPerNodeFlag(parser, for_node_pool=True)
     flags.AddSandboxFlag(parser)
     flags.AddNodeGroupFlag(parser)
     flags.AddEnableAutoUpgradeFlag(parser,
                                    for_node_pool=True,
                                    default=True)
     flags.AddLinuxSysctlFlags(parser, for_node_pool=True)
     flags.AddSurgeUpgradeFlag(parser, for_node_pool=True, default=1)
     flags.AddMaxUnavailableUpgradeFlag(parser,
                                        for_node_pool=True,
                                        is_create=True)
     flags.AddNodePoolLocationsFlag(parser, for_create=True)
     flags.AddSystemConfigFlag(parser, hidden=False)
     flags.AddReservationAffinityFlags(parser, for_node_pool=True)
     flags.AddEnableGcfsFlag(parser, for_node_pool=True)
     flags.AddEnableImageStreamingFlag(parser, for_node_pool=True)
     flags.AddNodePoolEnablePrivateNodes(parser)
     flags.AddEnableGvnicFlag(parser)
     flags.AddSpotFlag(parser, for_node_pool=True)
     flags.AddPlacementTypeFlag(parser, for_node_pool=True, hidden=False)
     flags.AddEnableRollingUpdateFlag(parser)
     flags.AddEnableBlueGreenUpdateFlag(parser)
     flags.AddStandardRolloutPolicyFlag(parser, for_node_pool=True)
     flags.AddNodePoolSoakDurationFlag(parser, for_node_pool=True)
     flags.AddMaintenanceIntervalFlag(parser,
                                      for_node_pool=True,
                                      hidden=True)
     flags.AddNetworkPerformanceConfigFlags(parser, hidden=False)
     flags.AddEnableConfidentialNodesFlag(parser, for_node_pool=True)
     flags.AddDisablePodCIDROverprovisionFlag(parser)
Exemple #4
0
 def Args(parser):
   _Args(parser)
   flags.AddClusterAutoscalingFlags(parser)
   flags.AddLocalSSDFlag(parser)
   flags.AddPreemptibleFlag(parser, for_node_pool=True)
   flags.AddEnableAutoRepairFlag(parser, for_node_pool=True, for_create=True)
   flags.AddMinCpuPlatformFlag(parser, for_node_pool=True)
   flags.AddWorkloadMetadataFromNodeFlag(parser)
   flags.AddNodeTaintsFlag(parser, for_node_pool=True)
   flags.AddNodePoolNodeIdentityFlags(parser)
   flags.AddNodePoolAutoprovisioningFlag(parser, hidden=True)
   flags.AddMaxPodsPerNodeFlag(parser, for_node_pool=True)
   flags.AddEnableAutoUpgradeFlag(parser, for_node_pool=True, default=True)
   flags.AddSandboxFlag(parser)
   flags.AddNodePoolLocationsFlag(parser, for_create=True)
   flags.AddShieldedInstanceFlags(parser)
    def Args(parser):
        _Args(parser)
        group = parser.add_mutually_exclusive_group(required=True)

        node_management_group = group.add_argument_group('Node management')
        flags.AddEnableAutoRepairFlag(node_management_group,
                                      for_node_pool=True)
        flags.AddEnableAutoUpgradeFlag(node_management_group,
                                       for_node_pool=True)

        autoscaling_group = flags.AddClusterAutoscalingFlags(group,
                                                             hidden=False)
        flags.AddNodePoolAutoprovisioningFlag(autoscaling_group, hidden=True)

        flags.AddWorkloadMetadataFromNodeFlag(group)

        flags.AddNodePoolLocationsFlag(group)
    def Args(parser):
        _Args(parser)
        group = parser.add_mutually_exclusive_group(required=True)

        node_management_group = group.add_argument_group('Node management')
        flags.AddEnableAutoRepairFlag(node_management_group,
                                      for_node_pool=True)
        flags.AddEnableAutoUpgradeFlag(node_management_group,
                                       for_node_pool=True)

        autoscaling_group = flags.AddClusterAutoscalingFlags(
            group, location_policy_present=True)
        flags.AddNodePoolAutoprovisioningFlag(autoscaling_group, hidden=False)

        upgrade_settings_group = group.add_argument_group('Upgrade settings')
        flags.AddEnableRollingUpdateFlag(upgrade_settings_group)
        flags.AddSurgeUpgradeFlag(upgrade_settings_group, for_node_pool=True)
        flags.AddMaxUnavailableUpgradeFlag(upgrade_settings_group,
                                           for_node_pool=True)

        flags.AddEnableBlueGreenUpdateFlag(upgrade_settings_group)
        flags.AddStandardRolloutPolicyFlag(upgrade_settings_group,
                                           for_node_pool=True)
        flags.AddNodePoolSoakDurationFlag(upgrade_settings_group,
                                          for_node_pool=True)

        flags.AddWorkloadMetadataFlag(group, use_mode=False)

        flags.AddNodePoolLocationsFlag(group)

        flags.AddSystemConfigFlag(group, hidden=False)

        flags.AddNodeLabelsFlag(group, for_node_pool=True, for_update=True)
        flags.AddNodeTaintsFlag(group, for_node_pool=True, for_update=True)
        flags.AddTagsNodePoolUpdate(group)
        flags.AddNodePoolEnablePrivateNodes(group)
        flags.AddEnableGcfsFlag(group, for_node_pool=True)
        flags.AddEnableGvnicFlag(group)
        flags.AddEnableImageStreamingFlag(group, for_node_pool=True)
        flags.AddNetworkPerformanceConfigFlags(group, hidden=False)
        flags.AddEnableConfidentialNodesFlag(group,
                                             for_node_pool=True,
                                             is_update=True)
    def Args(parser):
        _Args(parser)
        group = parser.add_mutually_exclusive_group(required=True)

        flags.AddNodePoolLocationsFlag(group)

        node_management_group = group.add_argument_group('Node management')
        flags.AddEnableAutoRepairFlag(node_management_group,
                                      for_node_pool=True)
        flags.AddEnableAutoUpgradeFlag(node_management_group,
                                       for_node_pool=True)

        autoscaling_group = flags.AddClusterAutoscalingFlags(group,
                                                             hidden=False)
        flags.AddNodePoolAutoprovisioningFlag(autoscaling_group, hidden=False)

        surge_upgrade_group = group.add_argument_group('Upgrade settings')
        flags.AddSurgeUpgradeFlag(surge_upgrade_group, for_node_pool=True)
        flags.AddMaxUnavailableUpgradeFlag(surge_upgrade_group,
                                           for_node_pool=True)
 def Args(parser):
     _Args(parser)
     flags.AddClusterAutoscalingFlags(parser)
     flags.AddLocalSSDFlag(parser)
     flags.AddPreemptibleFlag(parser, for_node_pool=True)
     flags.AddEnableAutoRepairFlag(parser,
                                   for_node_pool=True,
                                   for_create=True)
     flags.AddMinCpuPlatformFlag(parser, for_node_pool=True)
     flags.AddNodeTaintsFlag(parser, for_node_pool=True)
     flags.AddNodePoolNodeIdentityFlags(parser)
     flags.AddNodePoolAutoprovisioningFlag(parser, hidden=False)
     flags.AddMaxPodsPerNodeFlag(parser, for_node_pool=True)
     flags.AddEnableAutoUpgradeFlag(parser,
                                    for_node_pool=True,
                                    default=True)
     flags.AddReservationAffinityFlags(parser, for_node_pool=True)
     flags.AddSandboxFlag(parser)
     flags.AddNodePoolLocationsFlag(parser, for_create=True)
     flags.AddSurgeUpgradeFlag(parser, for_node_pool=True)
     flags.AddMaxUnavailableUpgradeFlag(parser,
                                        for_node_pool=True,
                                        is_create=True)