We use analytics and cookies to understand site traffic. Information about your use of our site is shared with Google for that purpose. Learn more.
The following CLI tools are supported for use with Knative.
You can use
kubectl to apply the YAML files required to install Knative components, and also to create Knative resources, such as services and event sources using YAML.
kn provides a quick and easy interface for creating Knative resources such as services and event sources, without the need to create or modify YAML files directly.
kn also simplifies completion of otherwise complex procedures such as autoscaling and traffic splitting.
kn cannot be used to install Knative components such as Serving or Eventing.
Connecting CLI tools to your cluster
After you have installed
kn, these tools will search for the
kubeconfig file of your cluster in the default location of
$HOME/.kube/config, and will use this file to connect to the cluster.
kubeconfig file is usually automatically created when you create a Kubernetes cluster.
For more information about
kubeconfig files, see Organizing Cluster Access Using kubeconfig Files.
Using kubeconfig files with your platform
Instructions for using
kubeconfig files are available for the following platforms: