github.com/GoogleContainerTools/skaffold/v2@v2.13.2/docs-v2/content/en/docs/deployers/kubectl.md (about)

     1  ---
     2  title: "Kubectl"
     3  linkTitle: "Kubectl"
     4  weight: 20
     5  featureId: deploy
     6  aliases: [/docs/pipeline-stages/deployers/kubectl]
     7  ---
     8  
     9  ## Deploying with kubectl
    10  
    11  `kubectl` is Kubernetes
    12  [command-line tool](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
    13  for deploying and managing
    14  applications on Kubernetes clusters.
    15  
    16  Skaffold can work with `kubectl` to
    17  deploy artifacts on any Kubernetes cluster, including
    18  [Google Kubernetes Engine](https://cloud.google.com/kubernetes-engine)
    19  clusters and local [Minikube](https://github.com/kubernetes/minikube) clusters.
    20  
    21  ### Configuration
    22  
    23  To use `kubectl`, add deploy type `kubectl` to the `deploy` section of
    24  `skaffold.yaml`.
    25  
    26  The `kubectl` type offers the following options:
    27  
    28  {{< schema root="KubectlDeploy" >}}
    29  
    30  `flags` section offers the following options:
    31  
    32  {{< schema root="KubectlFlags" >}}
    33  
    34  ### Example
    35  
    36  The following `deploy` section instructs Skaffold to deploy
    37  artifacts using `kubectl`:
    38  
    39  {{% readfile file="samples/deployers/kubectl.yaml" %}}
    40  
    41  {{< alert title="Note" >}}
    42  kubectl CLI must be installed on your machine. Skaffold will not
    43  install it.
    44  Also, it has to be installed in a version that's compatible with your cluster.
    45  {{< /alert >}}