code: def _connect_kubectl(spec):
      
      return {
          'method': 'kubectl',
          'kwargs': {
              'pod': spec.remote_addr(),
              'python_path': spec.python_path(),
              'connect_timeout': spec.ansible_ssh_timeout() or spec.timeout(),
              'kubectl_path': spec.mitogen_kubectl_path(),
              'kubectl_args': spec.extra_args(),
              'remote_name': get_remote_name(spec),
          }
      }
docs: Return ContextService arguments for a Kubernetes connection.