Stay organized with collections
Save and categorize content based on your preferences.
Configuring your kubectl client
By default, Config Connector expects the resource's namespace to match
the Google Cloud project ID where it's created.
You can simplify commands and avoid adding --namespace to each kubectl
command by changing the default context's namespace. To do so, run the following command:
[[["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-03-05 UTC."],[[["Config Connector defaults to using the Google Cloud project ID as the resource's namespace."],["You can change the default namespace for `kubectl` commands to avoid specifying it each time."],["The command `kubectl config set-context --current --namespace NAMESPACE_NAME` changes the default namespace."],["`NAMESPACE_NAME` must be replaced with the actual namespace you wish to use."]]],[]]