class PodPriorityExample {

  private static final Logger logger = LoggerFactory.getLogger(PodPriorityExample.class);

  public static void main(String[] args) {<FILL_FUNCTION_BODY>}
}

    final ConfigBuilder configBuilder = new ConfigBuilder();
    if (args.length > 0) {
      configBuilder.withMasterUrl(args[0]);
      logger.info("Using master with URL: {}", args[0]);
    }
    try (KubernetesClient client = new KubernetesClientBuilder().withConfig(configBuilder.build()).build()) {
      PriorityClass priorityClass = new PriorityClassBuilder()
          .withNewMetadata().withName("high-priority").endMetadata()
          .withValue(100000)
          .withGlobalDefault(false)
          .withDescription("This priority class should be used for XYZ service pods only.")
          .build();
      client.scheduling().v1().priorityClasses().resource(priorityClass).create();

      client.pods().inNamespace("default").resource(new PodBuilder()
          .withNewMetadata().withName("nginx").withLabels(Collections.singletonMap("env", "test")).endMetadata()
          .withNewSpec()
          .addToContainers(
              new ContainerBuilder().withName("nginx").withImage("nginx").withImagePullPolicy("IfNotPresent").build())
          .withPriorityClassName("high-priority")
          .endSpec()
          .build())
          .create();
    } catch (KubernetesClientException e) {
      logger.error("Could not create resource: {}", e.getMessage(), e);
    }
  
<no_super_class>