Stay organized with collections
Save and categorize content based on your preferences.
Configure the command-line tools to connect to and interact with
Knative serving.
These steps assume you are using a Mac or Linux operating system. If you
are using Microsoft Windows, you need to adjust the commands.
Although you can choose to use the
Google Cloud console to manage
Knative serving, there are some tasks that require the command-line
tools.
To install and configure the command-line tools for Knative serving:
Replace ZONE_REGION with the
zone or region
of your cluster.
If you created and use a new namespace other than the default namespace,
you can set that namespace as the default in Google Cloud CLI so that it's
used each time you run a command:
gcloudconfigsetrun/namespaceNAMESPACE
Replace NAMESPACE with the name of the namespace that you want
the gcloud CLI tool to use by default.
Install the kubectl command-line tool:
gcloudcomponentsinstallkubectl
Optional: Ensure that all previously installed components are up-to-date:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-23 UTC."],[],[]]