Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eConfig Connector defaults to using the Google Cloud project ID as the resource's namespace.\u003c/p\u003e\n"],["\u003cp\u003eYou can change the default namespace for \u003ccode\u003ekubectl\u003c/code\u003e commands to avoid specifying it each time.\u003c/p\u003e\n"],["\u003cp\u003eThe command \u003ccode\u003ekubectl config set-context --current --namespace NAMESPACE_NAME\u003c/code\u003e changes the default namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNAMESPACE_NAME\u003c/code\u003e must be replaced with the actual namespace you wish to use.\u003c/p\u003e\n"]]],[],null,["# Configuring your kubectl client\n===============================\n\n*** ** * ** ***\n\nBy default, Config Connector expects the resource's `namespace` to match\nthe Google Cloud project ID where it's created.\nTo simplify commands, set your default namespace by running the following command: \n\n```\nkubectl config set-context --current --namespace NAMESPACE_NAME\n```\nReplace \u003cvar translate=\"no\"\u003eNAMESPACE_NAME\u003c/var\u003e with your namespace name.\n\nWhat's next\n-----------\n\n- Learn how to change the default [project, folder, or organization](/config-connector/docs/how-to/organizing-resources/overview) for a namespace."]]