code: def kubernetes(ctx, profile):
      check_kubernetes_client(ctx)
  
      # Greet the user!
      echo(
          "Welcome to Metaflow! Follow the prompts to configure your "
          "installation.\n",
          bold=True,
      )
  
      check_kubernetes_config(ctx)
  
      # Check for existing configuration.
      if not confirm_overwrite_config(profile):
          ctx.abort()
  
      existing_env = get_env(profile)
  
      env = existing_env.copy()
  
      # We used to push user straight to S3 configuration inline.
      # Now that we support >1 cloud, it gets too complicated.
      # Therefore, we instruct the user to configure datastore first, by
      # a separate command.
      if existing_env.get("METAFLOW_DEFAULT_DATASTORE") == "local":
          click.echo(
              "\nCannot run Kubernetes with local datastore. Please run"
              " 'metaflow configure aws' or 'metaflow configure azure'."
          )
          click.Abort()
  
      # Configure remote metadata.
      if existing_env.get("METAFLOW_DEFAULT_METADATA") == "service":
          # Skip metadata service configuration if it is already configured
          pass
      else:
          if click.confirm(
              "\nMetaflow can use a "
              + yellow("remote Metadata Service to track")
              + " and persist flow execution metadata. \nWould you like to "
              "configure the Metadata Service?",
              default=True,
              abort=False,
          ):
              env.update(configure_metadata_service(existing_env))
  
      # Configure Kubernetes for compute.
      env.update(configure_kubernetes(existing_env))
  
      # Configure Argo Workflows Events
      if click.confirm("\nConfigure support for Argo Workflow Events?"):
          env.update(configure_argo_events(existing_env))
  
      persist_env({k: v for k, v in env.items() if v}, profile)
  
imports: import json
  import os
  import sys
  from os.path import expanduser
  from metaflow.util import to_unicode
  from metaflow._vendor import click
  from metaflow.util import to_unicode
  from .util import echo_always, makedirs
label_desc: Use image node_id 34 for calling a global function with example usage: kubernetes(ctx, profile) without return types