CINXE.COM

kubectl set | Kubernetes

<!doctype html><html itemscope itemtype=http://schema.org/WebPage lang=en class=no-js><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=generator content="Hugo 0.133.0"><link rel=canonical type=text/html href=https://kubernetes.io/docs/reference/kubectl/generated/kubectl_set/><meta name=robots content="noindex, nofollow"><link rel="shortcut icon" type=image/png href=/images/kubernetes.png><link rel=icon type=image/png sizes=64x64 href=/icons/favicon-64.png><link rel=icon type=image/png sizes=32x32 href=/icons/favicon-32.png><link rel=icon type=image/png sizes=16x16 href=/icons/favicon-16.png><link rel=apple-touch-icon-256x256 href=/icons/apple-touch-icon-256x256.png><link rel=apple-touch-icon-196x196 href=/icons/apple-touch-icon-196x196.png><link rel=apple-touch-icon-192x192 href=/icons/apple-touch-icon-192x192.png><link rel=apple-touch-icon-180x180 href=/icons/apple-touch-icon-180x180.png><link rel=apple-touch-icon-167x167 href=/icons/apple-touch-icon-167x167.png><link rel=apple-touch-icon-160x160 href=/icons/apple-touch-icon-160x160.png><link rel=apple-touch-icon-152x152 href=/icons/apple-touch-icon-152x152.png><link rel=apple-touch-icon-120x120 href=/icons/apple-touch-icon-120x120.png><link rel=apple-touch-icon-76x76 href=/icons/apple-touch-icon-76x76.png><link rel=icon type=image/png href=/icons/icon-128x128.png sizes=128x128><meta name=theme-color content="#326de6"><title>kubectl set | Kubernetes</title> <meta name=description content="Production-Grade Container Orchestration"><meta property="og:url" content="https://kubernetes.io/docs/reference/kubectl/generated/kubectl_set/"><meta property="og:site_name" content="Kubernetes"><meta property="og:title" content="kubectl set"><meta property="og:description" content="Synopsis Configure application resources. These commands help you make changes to existing application resources. kubectl set SUBCOMMAND Options -h, --help help for set --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. --as-group strings Group to impersonate for the operation, this flag can be repeated to specify multiple groups. --as-uid string UID to impersonate for the operation."><meta property="og:locale" content="en"><meta property="og:type" content="website"><meta itemprop=name content="kubectl set"><meta itemprop=description content="Synopsis Configure application resources. These commands help you make changes to existing application resources. kubectl set SUBCOMMAND Options -h, --help help for set --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. --as-group strings Group to impersonate for the operation, this flag can be repeated to specify multiple groups. --as-uid string UID to impersonate for the operation."><meta itemprop=dateModified content="2024-08-19T17:14:51+08:00"><meta itemprop=wordCount content="550"><meta name=twitter:card content="summary"><meta name=twitter:title content="kubectl set"><meta name=twitter:description content="Synopsis Configure application resources. These commands help you make changes to existing application resources. kubectl set SUBCOMMAND Options -h, --help help for set --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. --as-group strings Group to impersonate for the operation, this flag can be repeated to specify multiple groups. --as-uid string UID to impersonate for the operation."><link rel=preload href=/scss/main.min.d3ef1d3af94af9c0de44a2625c971405da0fb8d09f95cb39156c6d3dd6b8bc62.css as=style><link href=/scss/main.min.d3ef1d3af94af9c0de44a2625c971405da0fb8d09f95cb39156c6d3dd6b8bc62.css rel=stylesheet integrity><script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script><meta property="og:image" content="/images/kubernetes-open-graph.png"><link rel=manifest href=/manifest.webmanifest><link rel=alternate hreflang=zh-cn href=https://kubernetes.io/zh-cn/docs/reference/kubectl/generated/kubectl_set/><script type=application/ld+json>{"@context":"https://schema.org","@type":"Organization","url":"https://kubernetes.io","logo":"https://kubernetes.io/images/favicon.png","potentialAction":{"@type":"SearchAction","target":"https://kubernetes.io/search/?q={search_term_string}","query-input":"required name=search_term_string"}}</script><meta name=theme-color content="#326ce5"><link rel=manifest href=/manifest.webmanifest><script defer src=/js/banner-dismiss.min.bb5cb02169825d4a22f522c81742670e65425430e15ae13229e8123aabde39f5.js integrity="sha256-u1ywIWmCXUoi9SLIF0JnDmVCVDDhWuEyKegSOqveOfU=" crossorigin=anonymous></script><script async src="https://www.googletagmanager.com/gtag/js?id=G-JPP6RFM2BP"></script><script>var dnt,doNotTrack=!1;if(!1&&(dnt=navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack,doNotTrack=dnt=="1"||dnt=="yes"),!doNotTrack){window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag("js",new Date),gtag("config","G-JPP6RFM2BP")}</script></head><body class=td-section><header><nav class="js-navbar-scroll navbar navbar-expand navbar-dark flex-column flex-md-row td-navbar" data-auto-burger=primary><a class="navbar-brand img-fluid" href=/></a><div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar><ul class="navbar-nav mt-2 mt-lg-0"><li class="nav-item mr-2 mb-lg-0"><a class="nav-link active" href=/docs/>Documentation</a></li><li class="nav-item mr-2 mb-lg-0"><a class=nav-link href=/blog/>Kubernetes Blog</a></li><li class="nav-item mr-2 mb-lg-0"><a class=nav-link href=/training/>Training</a></li><li class="nav-item mr-2 mb-lg-0"><a class=nav-link href=/partners/>Partners</a></li><li class="nav-item mr-2 mb-lg-0"><a class=nav-link href=/community/>Community</a></li><li class="nav-item mr-2 mb-lg-0"><a class=nav-link href=/case-studies/>Case Studies</a></li><li class="nav-item mr-n3 mr-lg-0 dropdown"><a class="nav-link dropdown-toggle" href=# id=navbarDropdown role=button data-toggle=dropdown aria-haspopup=true aria-expanded=false>Versions</a><div class="dropdown-menu dropdown-menu-right" aria-labelledby=navbarDropdownMenuLink><a class=dropdown-item href=/releases>Release Information</a> <a class=dropdown-item href=https://kubernetes.io/docs/reference/kubectl/generated/kubectl_set/>v1.32</a> <a class=dropdown-item href=https://v1-31.docs.kubernetes.io/docs/reference/kubectl/generated/kubectl_set/>v1.31</a> <a class=dropdown-item href=https://v1-30.docs.kubernetes.io/docs/reference/kubectl/generated/kubectl_set/>v1.30</a> <a class=dropdown-item href=https://v1-29.docs.kubernetes.io/docs/reference/kubectl/generated/kubectl_set/>v1.29</a> <a class=dropdown-item href=https://v1-28.docs.kubernetes.io/docs/reference/kubectl/generated/kubectl_set/>v1.28</a></div></li><li class="nav-item mr-n4 mr-lg-0 dropdown"><a class="nav-link dropdown-toggle" href=# id=navbarDropdownMenuLink role=button data-toggle=dropdown aria-haspopup=true aria-expanded=false>English</a><div class="dropdown-menu dropdown-menu-right" aria-labelledby=navbarDropdownMenuLink><a class=dropdown-item href=/zh-cn/docs/reference/kubectl/generated/kubectl_set/>中文 (Chinese)</a></div></li><li class="search-item nav-item mr-n4 mr-lg-0"><div class=search-bar><i class="search-icon fa-solid fa-search"></i> <input type=search name=q data-search-page=/search/ class="search-input td-search-input" placeholder="Search this site" aria-label="Search this site" autocomplete=off></div></li></ul></div><button id=hamburger onclick=kub.toggleMenu() data-auto-burger-exclude><div></div></button></nav></header><div class="container-fluid td-outer"><div class=td-main><div class="row flex-xl-nowrap"><main class="col-12 col-md-9 col-xl-8 pl-md-5" role=main><div class=td-content><div class="pageinfo pageinfo-primary d-print-none"><p>This is the multi-page printable view of this section. <a href=# onclick="return print(),!1">Click here to print</a>.</p><p><a href=/docs/reference/kubectl/generated/kubectl_set/>Return to the regular view of this page</a>.</p></div><h1 class=title>kubectl set</h1><ul><li>1: <a href=#pg-8efccafb687ee15419a3c10a01f52499>kubectl set env</a></li><li>2: <a href=#pg-5f280fa194c35dcc401bf7a8b16df02d>kubectl set image</a></li><li>3: <a href=#pg-bd8b811c676cdb149ca3cad198624d9f>kubectl set resources</a></li><li>4: <a href=#pg-affb9944665fc880f3ebb6edf7673214>kubectl set selector</a></li><li>5: <a href=#pg-3118ff763cfaafe03d807a502e48e967>kubectl set serviceaccount</a></li><li>6: <a href=#pg-e9c5704d912a656bcc627016d1045699>kubectl set subject</a></li></ul><div class=content><h2 id=synopsis>Synopsis</h2><p>Configure application resources.</p><p>These commands help you make changes to existing application resources.</p><pre tabindex=0><code>kubectl set SUBCOMMAND </code></pre><h2 id=options>Options</h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>-h, --help</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>help for set</p></td></tr></tbody></table><h2 id=heading></h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--as string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username to impersonate for the operation. User could be a regular user or a service account in a namespace.</p></td></tr><tr><td colspan=2>--as-group strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Group to impersonate for the operation, this flag can be repeated to specify multiple groups.</p></td></tr><tr><td colspan=2>--as-uid string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>UID to impersonate for the operation.</p></td></tr><tr><td colspan=2>--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "$HOME/.kube/cache"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Default cache directory</p></td></tr><tr><td colspan=2>--certificate-authority string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a cert file for the certificate authority</p></td></tr><tr><td colspan=2>--client-certificate string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client certificate file for TLS</p></td></tr><tr><td colspan=2>--client-key string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client key file for TLS</p></td></tr><tr><td colspan=2>--cluster string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig cluster to use</p></td></tr><tr><td colspan=2>--context string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig context to use</p></td></tr><tr><td colspan=2>--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for notReady:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--disable-compression</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, opt-out of response compression for all requests to the server</p></td></tr><tr><td colspan=2>--insecure-skip-tls-verify</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure</p></td></tr><tr><td colspan=2>--kubeconfig string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to the kubeconfig file to use for CLI requests.</p></td></tr><tr><td colspan=2>--match-server-version</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Require server version to match client version</p></td></tr><tr><td colspan=2>-n, --namespace string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If present, the namespace scope for this CLI request</p></td></tr><tr><td colspan=2>--password string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Password for basic authentication to the API server</p></td></tr><tr><td colspan=2>--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)</p></td></tr><tr><td colspan=2>--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "profile.pprof"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the file to write the profile to</p></td></tr><tr><td colspan=2>--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "0"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.</p></td></tr><tr><td colspan=2>-s, --server string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The address and port of the Kubernetes API server</p></td></tr><tr><td colspan=2>--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 1m0s</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction</p></td></tr><tr><td colspan=2>--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "cadvisor"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database name</p></td></tr><tr><td colspan=2>--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "localhost:8086"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database host:port</p></td></tr><tr><td colspan=2>--storage-driver-password string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database password</p></td></tr><tr><td colspan=2>--storage-driver-secure</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>use secure connection with database</p></td></tr><tr><td colspan=2>--storage-driver-table string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "stats"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>table name</p></td></tr><tr><td colspan=2>--storage-driver-user string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database username</p></td></tr><tr><td colspan=2>--tls-server-name string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used</p></td></tr><tr><td colspan=2>--token string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Bearer token for authentication to the API server</p></td></tr><tr><td colspan=2>--user string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig user to use</p></td></tr><tr><td colspan=2>--username string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username for basic authentication to the API server</p></td></tr><tr><td colspan=2>--version version[=true]</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version</p></td></tr><tr><td colspan=2>--warnings-as-errors</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Treat warnings received from the server as errors and exit with a non-zero exit code</p></td></tr></tbody></table><h2 id=see-also>See Also</h2><ul><li><a href=../kubectl/>kubectl</a> - kubectl controls the Kubernetes cluster manager</li><li><a href=kubectl_set_env/>kubectl set env</a> - Update environment variables on a pod template</li><li><a href=kubectl_set_image/>kubectl set image</a> - Update the image of a pod template</li><li><a href=kubectl_set_resources/>kubectl set resources</a> - Update resource requests/limits on objects with pod templates</li><li><a href=kubectl_set_selector/>kubectl set selector</a> - Set the selector on a resource</li><li><a href=kubectl_set_serviceaccount/>kubectl set serviceaccount</a> - Update the service account of a resource</li><li><a href=kubectl_set_subject/>kubectl set subject</a> - Update the user, group, or service account in a role binding or cluster role binding</li></ul></div></div><div class=td-content style=page-break-before:always><h1 id=pg-8efccafb687ee15419a3c10a01f52499>1 - kubectl set env</h1><h2 id=synopsis>Synopsis</h2><p>Update environment variables on a pod template.</p><p>List environment variable definitions in one or more pods, pod templates. Add, update, or remove container environment variable definitions in one or more pod templates (within replication controllers or deployment configurations). View or modify the environment variable definitions on all containers in the specified pods or pod templates, or just those that match a wildcard.</p><p>If "--env -" is passed, environment variables can be read from STDIN using the standard env syntax.</p><p>Possible resources include (case insensitive):</p><pre><code> pod (po), replicationcontroller (rc), deployment (deploy), daemonset (ds), statefulset (sts), cronjob (cj), replicaset (rs) </code></pre><pre tabindex=0><code>kubectl set env RESOURCE/NAME KEY_1=VAL_1 ... KEY_N=VAL_N </code></pre><h2 id=examples>Examples</h2><pre tabindex=0><code> # Update deployment &#39;registry&#39; with a new environment variable kubectl set env deployment/registry STORAGE_DIR=/local # List the environment variables defined on a deployments &#39;sample-build&#39; kubectl set env deployment/sample-build --list # List the environment variables defined on all pods kubectl set env pods --all --list # Output modified deployment in YAML, and does not alter the object on the server kubectl set env deployment/sample-build STORAGE_DIR=/data -o yaml # Update all containers in all replication controllers in the project to have ENV=prod kubectl set env rc --all ENV=prod # Import environment from a secret kubectl set env --from=secret/mysecret deployment/myapp # Import environment from a config map with a prefix kubectl set env --from=configmap/myconfigmap --prefix=MYSQL_ deployment/myapp # Import specific keys from a config map kubectl set env --keys=my-example-key --from=configmap/myconfigmap deployment/myapp # Remove the environment variable ENV from container &#39;c1&#39; in all deployment configs kubectl set env deployments --all --containers=&#34;c1&#34; ENV- # Remove the environment variable ENV from a deployment definition on disk and # update the deployment config on the server kubectl set env -f deploy.json ENV- # Set some of the local shell environment into a deployment config on the server env | grep RAILS_ | kubectl set env -e - deployment/registry </code></pre><h2 id=options>Options</h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--all</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, select all resources in the namespace of the specified resource types</p></td></tr><tr><td colspan=2>--allow-missing-template-keys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: true</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.</p></td></tr><tr><td colspan=2>-c, --containers string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "*"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The names of containers in the selected pod templates to change - may use wildcards</p></td></tr><tr><td colspan=2>--dry-run string[="unchanged"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.</p></td></tr><tr><td colspan=2>-e, --env strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Specify a key-value pair for an environment variable to set into each container.</p></td></tr><tr><td colspan=2>--field-manager string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "kubectl-set"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the manager used to track field ownership.</p></td></tr><tr><td colspan=2>-f, --filename strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Filename, directory, or URL to files the resource to update the env</p></td></tr><tr><td colspan=2>--from string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of a resource from which to inject environment variables</p></td></tr><tr><td colspan=2>-h, --help</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>help for env</p></td></tr><tr><td colspan=2>--keys strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Comma-separated list of keys to import from specified resource</p></td></tr><tr><td colspan=2>-k, --kustomize string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Process the kustomization directory. This flag can't be used together with -f or -R.</p></td></tr><tr><td colspan=2>--list</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, display the environment and any changes in the standard format. this flag will removed when we have kubectl view env.</p></td></tr><tr><td colspan=2>--local</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, set env will NOT contact api-server but run locally.</p></td></tr><tr><td colspan=2>-o, --output string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).</p></td></tr><tr><td colspan=2>--overwrite&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: true</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, allow environment to be overwritten, otherwise reject updates that overwrite existing environment.</p></td></tr><tr><td colspan=2>--prefix string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Prefix to append to variable names</p></td></tr><tr><td colspan=2>-R, --recursive</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.</p></td></tr><tr><td colspan=2>--resolve</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, show secret or configmap references when listing variables</p></td></tr><tr><td colspan=2>-l, --selector string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.</p></td></tr><tr><td colspan=2>--show-managed-fields</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, keep the managedFields when printing objects in JSON or YAML format.</p></td></tr><tr><td colspan=2>--template string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].</p></td></tr></tbody></table><h2 id=heading></h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--as string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username to impersonate for the operation. User could be a regular user or a service account in a namespace.</p></td></tr><tr><td colspan=2>--as-group strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Group to impersonate for the operation, this flag can be repeated to specify multiple groups.</p></td></tr><tr><td colspan=2>--as-uid string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>UID to impersonate for the operation.</p></td></tr><tr><td colspan=2>--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "$HOME/.kube/cache"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Default cache directory</p></td></tr><tr><td colspan=2>--certificate-authority string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a cert file for the certificate authority</p></td></tr><tr><td colspan=2>--client-certificate string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client certificate file for TLS</p></td></tr><tr><td colspan=2>--client-key string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client key file for TLS</p></td></tr><tr><td colspan=2>--cluster string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig cluster to use</p></td></tr><tr><td colspan=2>--context string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig context to use</p></td></tr><tr><td colspan=2>--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for notReady:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--disable-compression</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, opt-out of response compression for all requests to the server</p></td></tr><tr><td colspan=2>--insecure-skip-tls-verify</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure</p></td></tr><tr><td colspan=2>--kubeconfig string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to the kubeconfig file to use for CLI requests.</p></td></tr><tr><td colspan=2>--match-server-version</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Require server version to match client version</p></td></tr><tr><td colspan=2>-n, --namespace string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If present, the namespace scope for this CLI request</p></td></tr><tr><td colspan=2>--password string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Password for basic authentication to the API server</p></td></tr><tr><td colspan=2>--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)</p></td></tr><tr><td colspan=2>--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "profile.pprof"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the file to write the profile to</p></td></tr><tr><td colspan=2>--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "0"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.</p></td></tr><tr><td colspan=2>-s, --server string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The address and port of the Kubernetes API server</p></td></tr><tr><td colspan=2>--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 1m0s</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction</p></td></tr><tr><td colspan=2>--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "cadvisor"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database name</p></td></tr><tr><td colspan=2>--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "localhost:8086"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database host:port</p></td></tr><tr><td colspan=2>--storage-driver-password string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database password</p></td></tr><tr><td colspan=2>--storage-driver-secure</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>use secure connection with database</p></td></tr><tr><td colspan=2>--storage-driver-table string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "stats"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>table name</p></td></tr><tr><td colspan=2>--storage-driver-user string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database username</p></td></tr><tr><td colspan=2>--tls-server-name string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used</p></td></tr><tr><td colspan=2>--token string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Bearer token for authentication to the API server</p></td></tr><tr><td colspan=2>--user string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig user to use</p></td></tr><tr><td colspan=2>--username string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username for basic authentication to the API server</p></td></tr><tr><td colspan=2>--version version[=true]</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version</p></td></tr><tr><td colspan=2>--warnings-as-errors</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Treat warnings received from the server as errors and exit with a non-zero exit code</p></td></tr></tbody></table><h2 id=see-also>See Also</h2><ul><li><a href=../>kubectl set</a> - Set specific features on objects</li></ul></div><div class=td-content style=page-break-before:always><h1 id=pg-5f280fa194c35dcc401bf7a8b16df02d>2 - kubectl set image</h1><h2 id=synopsis>Synopsis</h2><p>Update existing container image(s) of resources.</p><p>Possible resources include (case insensitive):</p><pre><code> pod (po), replicationcontroller (rc), deployment (deploy), daemonset (ds), statefulset (sts), cronjob (cj), replicaset (rs) </code></pre><pre tabindex=0><code>kubectl set image (-f FILENAME | TYPE NAME) CONTAINER_NAME_1=CONTAINER_IMAGE_1 ... CONTAINER_NAME_N=CONTAINER_IMAGE_N </code></pre><h2 id=examples>Examples</h2><pre tabindex=0><code> # Set a deployment&#39;s nginx container image to &#39;nginx:1.9.1&#39;, and its busybox container image to &#39;busybox&#39; kubectl set image deployment/nginx busybox=busybox nginx=nginx:1.9.1 # Update all deployments&#39; and rc&#39;s nginx container&#39;s image to &#39;nginx:1.9.1&#39; kubectl set image deployments,rc nginx=nginx:1.9.1 --all # Update image of all containers of daemonset abc to &#39;nginx:1.9.1&#39; kubectl set image daemonset abc *=nginx:1.9.1 # Print result (in yaml format) of updating nginx container image from local file, without hitting the server kubectl set image -f path/to/file.yaml nginx=nginx:1.9.1 --local -o yaml </code></pre><h2 id=options>Options</h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--all</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Select all resources, in the namespace of the specified resource types</p></td></tr><tr><td colspan=2>--allow-missing-template-keys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: true</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.</p></td></tr><tr><td colspan=2>--dry-run string[="unchanged"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.</p></td></tr><tr><td colspan=2>--field-manager string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "kubectl-set"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the manager used to track field ownership.</p></td></tr><tr><td colspan=2>-f, --filename strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Filename, directory, or URL to files identifying the resource to get from a server.</p></td></tr><tr><td colspan=2>-h, --help</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>help for image</p></td></tr><tr><td colspan=2>-k, --kustomize string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Process the kustomization directory. This flag can't be used together with -f or -R.</p></td></tr><tr><td colspan=2>--local</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, set image will NOT contact api-server but run locally.</p></td></tr><tr><td colspan=2>-o, --output string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).</p></td></tr><tr><td colspan=2>-R, --recursive</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.</p></td></tr><tr><td colspan=2>-l, --selector string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.</p></td></tr><tr><td colspan=2>--show-managed-fields</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, keep the managedFields when printing objects in JSON or YAML format.</p></td></tr><tr><td colspan=2>--template string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].</p></td></tr></tbody></table><h2 id=heading></h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--as string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username to impersonate for the operation. User could be a regular user or a service account in a namespace.</p></td></tr><tr><td colspan=2>--as-group strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Group to impersonate for the operation, this flag can be repeated to specify multiple groups.</p></td></tr><tr><td colspan=2>--as-uid string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>UID to impersonate for the operation.</p></td></tr><tr><td colspan=2>--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "$HOME/.kube/cache"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Default cache directory</p></td></tr><tr><td colspan=2>--certificate-authority string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a cert file for the certificate authority</p></td></tr><tr><td colspan=2>--client-certificate string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client certificate file for TLS</p></td></tr><tr><td colspan=2>--client-key string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client key file for TLS</p></td></tr><tr><td colspan=2>--cluster string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig cluster to use</p></td></tr><tr><td colspan=2>--context string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig context to use</p></td></tr><tr><td colspan=2>--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for notReady:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--disable-compression</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, opt-out of response compression for all requests to the server</p></td></tr><tr><td colspan=2>--insecure-skip-tls-verify</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure</p></td></tr><tr><td colspan=2>--kubeconfig string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to the kubeconfig file to use for CLI requests.</p></td></tr><tr><td colspan=2>--match-server-version</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Require server version to match client version</p></td></tr><tr><td colspan=2>-n, --namespace string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If present, the namespace scope for this CLI request</p></td></tr><tr><td colspan=2>--password string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Password for basic authentication to the API server</p></td></tr><tr><td colspan=2>--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)</p></td></tr><tr><td colspan=2>--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "profile.pprof"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the file to write the profile to</p></td></tr><tr><td colspan=2>--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "0"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.</p></td></tr><tr><td colspan=2>-s, --server string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The address and port of the Kubernetes API server</p></td></tr><tr><td colspan=2>--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 1m0s</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction</p></td></tr><tr><td colspan=2>--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "cadvisor"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database name</p></td></tr><tr><td colspan=2>--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "localhost:8086"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database host:port</p></td></tr><tr><td colspan=2>--storage-driver-password string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database password</p></td></tr><tr><td colspan=2>--storage-driver-secure</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>use secure connection with database</p></td></tr><tr><td colspan=2>--storage-driver-table string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "stats"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>table name</p></td></tr><tr><td colspan=2>--storage-driver-user string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database username</p></td></tr><tr><td colspan=2>--tls-server-name string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used</p></td></tr><tr><td colspan=2>--token string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Bearer token for authentication to the API server</p></td></tr><tr><td colspan=2>--user string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig user to use</p></td></tr><tr><td colspan=2>--username string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username for basic authentication to the API server</p></td></tr><tr><td colspan=2>--version version[=true]</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version</p></td></tr><tr><td colspan=2>--warnings-as-errors</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Treat warnings received from the server as errors and exit with a non-zero exit code</p></td></tr></tbody></table><h2 id=see-also>See Also</h2><ul><li><a href=../>kubectl set</a> - Set specific features on objects</li></ul></div><div class=td-content style=page-break-before:always><h1 id=pg-bd8b811c676cdb149ca3cad198624d9f>3 - kubectl set resources</h1><h2 id=synopsis>Synopsis</h2><p>Specify compute resource requirements (CPU, memory) for any resource that defines a pod template. If a pod is successfully scheduled, it is guaranteed the amount of resource requested, but may burst up to its specified limits.</p><p>For each compute resource, if a limit is specified and a request is omitted, the request will default to the limit.</p><p>Possible resources include (case insensitive): Use "kubectl api-resources" for a complete list of supported resources..</p><pre tabindex=0><code>kubectl set resources (-f FILENAME | TYPE NAME) ([--limits=LIMITS &amp; --requests=REQUESTS] </code></pre><h2 id=examples>Examples</h2><pre tabindex=0><code> # Set a deployments nginx container cpu limits to &#34;200m&#34; and memory to &#34;512Mi&#34; kubectl set resources deployment nginx -c=nginx --limits=cpu=200m,memory=512Mi # Set the resource request and limits for all containers in nginx kubectl set resources deployment nginx --limits=cpu=200m,memory=512Mi --requests=cpu=100m,memory=256Mi # Remove the resource requests for resources on containers in nginx kubectl set resources deployment nginx --limits=cpu=0,memory=0 --requests=cpu=0,memory=0 # Print the result (in yaml format) of updating nginx container limits from a local, without hitting the server kubectl set resources -f path/to/file.yaml --limits=cpu=200m,memory=512Mi --local -o yaml </code></pre><h2 id=options>Options</h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--all</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Select all resources, in the namespace of the specified resource types</p></td></tr><tr><td colspan=2>--allow-missing-template-keys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: true</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.</p></td></tr><tr><td colspan=2>-c, --containers string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "*"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The names of containers in the selected pod templates to change, all containers are selected by default - may use wildcards</p></td></tr><tr><td colspan=2>--dry-run string[="unchanged"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.</p></td></tr><tr><td colspan=2>--field-manager string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "kubectl-set"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the manager used to track field ownership.</p></td></tr><tr><td colspan=2>-f, --filename strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Filename, directory, or URL to files identifying the resource to get from a server.</p></td></tr><tr><td colspan=2>-h, --help</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>help for resources</p></td></tr><tr><td colspan=2>-k, --kustomize string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Process the kustomization directory. This flag can't be used together with -f or -R.</p></td></tr><tr><td colspan=2>--limits string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The resource requirement requests for this container. For example, 'cpu=100m,memory=256Mi'. Note that server side components may assign requests depending on the server configuration, such as limit ranges.</p></td></tr><tr><td colspan=2>--local</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, set resources will NOT contact api-server but run locally.</p></td></tr><tr><td colspan=2>-o, --output string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).</p></td></tr><tr><td colspan=2>-R, --recursive</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.</p></td></tr><tr><td colspan=2>--requests string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The resource requirement requests for this container. For example, 'cpu=100m,memory=256Mi'. Note that server side components may assign requests depending on the server configuration, such as limit ranges.</p></td></tr><tr><td colspan=2>-l, --selector string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.</p></td></tr><tr><td colspan=2>--show-managed-fields</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, keep the managedFields when printing objects in JSON or YAML format.</p></td></tr><tr><td colspan=2>--template string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].</p></td></tr></tbody></table><h2 id=heading></h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--as string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username to impersonate for the operation. User could be a regular user or a service account in a namespace.</p></td></tr><tr><td colspan=2>--as-group strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Group to impersonate for the operation, this flag can be repeated to specify multiple groups.</p></td></tr><tr><td colspan=2>--as-uid string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>UID to impersonate for the operation.</p></td></tr><tr><td colspan=2>--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "$HOME/.kube/cache"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Default cache directory</p></td></tr><tr><td colspan=2>--certificate-authority string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a cert file for the certificate authority</p></td></tr><tr><td colspan=2>--client-certificate string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client certificate file for TLS</p></td></tr><tr><td colspan=2>--client-key string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client key file for TLS</p></td></tr><tr><td colspan=2>--cluster string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig cluster to use</p></td></tr><tr><td colspan=2>--context string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig context to use</p></td></tr><tr><td colspan=2>--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for notReady:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--disable-compression</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, opt-out of response compression for all requests to the server</p></td></tr><tr><td colspan=2>--insecure-skip-tls-verify</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure</p></td></tr><tr><td colspan=2>--kubeconfig string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to the kubeconfig file to use for CLI requests.</p></td></tr><tr><td colspan=2>--match-server-version</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Require server version to match client version</p></td></tr><tr><td colspan=2>-n, --namespace string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If present, the namespace scope for this CLI request</p></td></tr><tr><td colspan=2>--password string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Password for basic authentication to the API server</p></td></tr><tr><td colspan=2>--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)</p></td></tr><tr><td colspan=2>--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "profile.pprof"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the file to write the profile to</p></td></tr><tr><td colspan=2>--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "0"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.</p></td></tr><tr><td colspan=2>-s, --server string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The address and port of the Kubernetes API server</p></td></tr><tr><td colspan=2>--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 1m0s</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction</p></td></tr><tr><td colspan=2>--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "cadvisor"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database name</p></td></tr><tr><td colspan=2>--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "localhost:8086"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database host:port</p></td></tr><tr><td colspan=2>--storage-driver-password string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database password</p></td></tr><tr><td colspan=2>--storage-driver-secure</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>use secure connection with database</p></td></tr><tr><td colspan=2>--storage-driver-table string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "stats"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>table name</p></td></tr><tr><td colspan=2>--storage-driver-user string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database username</p></td></tr><tr><td colspan=2>--tls-server-name string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used</p></td></tr><tr><td colspan=2>--token string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Bearer token for authentication to the API server</p></td></tr><tr><td colspan=2>--user string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig user to use</p></td></tr><tr><td colspan=2>--username string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username for basic authentication to the API server</p></td></tr><tr><td colspan=2>--version version[=true]</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version</p></td></tr><tr><td colspan=2>--warnings-as-errors</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Treat warnings received from the server as errors and exit with a non-zero exit code</p></td></tr></tbody></table><h2 id=see-also>See Also</h2><ul><li><a href=../>kubectl set</a> - Set specific features on objects</li></ul></div><div class=td-content style=page-break-before:always><h1 id=pg-affb9944665fc880f3ebb6edf7673214>4 - kubectl set selector</h1><h2 id=synopsis>Synopsis</h2><p>Set the selector on a resource. Note that the new selector will overwrite the old selector if the resource had one prior to the invocation of 'set selector'.</p><p>A selector must begin with a letter or number, and may contain letters, numbers, hyphens, dots, and underscores, up to 63 characters. If --resource-version is specified, then updates will use this resource version, otherwise the existing resource-version will be used. Note: currently selectors can only be set on Service objects.</p><pre tabindex=0><code>kubectl set selector (-f FILENAME | TYPE NAME) EXPRESSIONS [--resource-version=version] </code></pre><h2 id=examples>Examples</h2><pre tabindex=0><code> # Set the labels and selector before creating a deployment/service pair kubectl create service clusterip my-svc --clusterip=&#34;None&#34; -o yaml --dry-run=client | kubectl set selector --local -f - &#39;environment=qa&#39; -o yaml | kubectl create -f - kubectl create deployment my-dep -o yaml --dry-run=client | kubectl label --local -f - environment=qa -o yaml | kubectl create -f - </code></pre><h2 id=options>Options</h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--all</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Select all resources in the namespace of the specified resource types</p></td></tr><tr><td colspan=2>--allow-missing-template-keys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: true</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.</p></td></tr><tr><td colspan=2>--dry-run string[="unchanged"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.</p></td></tr><tr><td colspan=2>--field-manager string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "kubectl-set"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the manager used to track field ownership.</p></td></tr><tr><td colspan=2>-f, --filename strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>identifying the resource.</p></td></tr><tr><td colspan=2>-h, --help</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>help for selector</p></td></tr><tr><td colspan=2>--local</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, annotation will NOT contact api-server but run locally.</p></td></tr><tr><td colspan=2>-o, --output string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).</p></td></tr><tr><td colspan=2>-R, --recursive&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: true</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.</p></td></tr><tr><td colspan=2>--resource-version string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If non-empty, the selectors update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.</p></td></tr><tr><td colspan=2>--show-managed-fields</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, keep the managedFields when printing objects in JSON or YAML format.</p></td></tr><tr><td colspan=2>--template string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].</p></td></tr></tbody></table><h2 id=heading></h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--as string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username to impersonate for the operation. User could be a regular user or a service account in a namespace.</p></td></tr><tr><td colspan=2>--as-group strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Group to impersonate for the operation, this flag can be repeated to specify multiple groups.</p></td></tr><tr><td colspan=2>--as-uid string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>UID to impersonate for the operation.</p></td></tr><tr><td colspan=2>--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "$HOME/.kube/cache"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Default cache directory</p></td></tr><tr><td colspan=2>--certificate-authority string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a cert file for the certificate authority</p></td></tr><tr><td colspan=2>--client-certificate string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client certificate file for TLS</p></td></tr><tr><td colspan=2>--client-key string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client key file for TLS</p></td></tr><tr><td colspan=2>--cluster string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig cluster to use</p></td></tr><tr><td colspan=2>--context string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig context to use</p></td></tr><tr><td colspan=2>--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for notReady:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--disable-compression</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, opt-out of response compression for all requests to the server</p></td></tr><tr><td colspan=2>--insecure-skip-tls-verify</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure</p></td></tr><tr><td colspan=2>--kubeconfig string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to the kubeconfig file to use for CLI requests.</p></td></tr><tr><td colspan=2>--match-server-version</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Require server version to match client version</p></td></tr><tr><td colspan=2>-n, --namespace string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If present, the namespace scope for this CLI request</p></td></tr><tr><td colspan=2>--password string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Password for basic authentication to the API server</p></td></tr><tr><td colspan=2>--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)</p></td></tr><tr><td colspan=2>--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "profile.pprof"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the file to write the profile to</p></td></tr><tr><td colspan=2>--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "0"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.</p></td></tr><tr><td colspan=2>-s, --server string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The address and port of the Kubernetes API server</p></td></tr><tr><td colspan=2>--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 1m0s</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction</p></td></tr><tr><td colspan=2>--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "cadvisor"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database name</p></td></tr><tr><td colspan=2>--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "localhost:8086"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database host:port</p></td></tr><tr><td colspan=2>--storage-driver-password string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database password</p></td></tr><tr><td colspan=2>--storage-driver-secure</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>use secure connection with database</p></td></tr><tr><td colspan=2>--storage-driver-table string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "stats"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>table name</p></td></tr><tr><td colspan=2>--storage-driver-user string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database username</p></td></tr><tr><td colspan=2>--tls-server-name string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used</p></td></tr><tr><td colspan=2>--token string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Bearer token for authentication to the API server</p></td></tr><tr><td colspan=2>--user string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig user to use</p></td></tr><tr><td colspan=2>--username string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username for basic authentication to the API server</p></td></tr><tr><td colspan=2>--version version[=true]</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version</p></td></tr><tr><td colspan=2>--warnings-as-errors</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Treat warnings received from the server as errors and exit with a non-zero exit code</p></td></tr></tbody></table><h2 id=see-also>See Also</h2><ul><li><a href=../>kubectl set</a> - Set specific features on objects</li></ul></div><div class=td-content style=page-break-before:always><h1 id=pg-3118ff763cfaafe03d807a502e48e967>5 - kubectl set serviceaccount</h1><h2 id=synopsis>Synopsis</h2><p>Update the service account of pod template resources.</p><p>Possible resources (case insensitive) can be:</p><p>replicationcontroller (rc), deployment (deploy), daemonset (ds), job, replicaset (rs), statefulset</p><pre tabindex=0><code>kubectl set serviceaccount (-f FILENAME | TYPE NAME) SERVICE_ACCOUNT </code></pre><h2 id=examples>Examples</h2><pre tabindex=0><code> # Set deployment nginx-deployment&#39;s service account to serviceaccount1 kubectl set serviceaccount deployment nginx-deployment serviceaccount1 # Print the result (in YAML format) of updated nginx deployment with the service account from local file, without hitting the API server kubectl set sa -f nginx-deployment.yaml serviceaccount1 --local --dry-run=client -o yaml </code></pre><h2 id=options>Options</h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--all</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Select all resources, in the namespace of the specified resource types</p></td></tr><tr><td colspan=2>--allow-missing-template-keys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: true</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.</p></td></tr><tr><td colspan=2>--dry-run string[="unchanged"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.</p></td></tr><tr><td colspan=2>--field-manager string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "kubectl-set"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the manager used to track field ownership.</p></td></tr><tr><td colspan=2>-f, --filename strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Filename, directory, or URL to files identifying the resource to get from a server.</p></td></tr><tr><td colspan=2>-h, --help</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>help for serviceaccount</p></td></tr><tr><td colspan=2>-k, --kustomize string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Process the kustomization directory. This flag can't be used together with -f or -R.</p></td></tr><tr><td colspan=2>--local</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, set serviceaccount will NOT contact api-server but run locally.</p></td></tr><tr><td colspan=2>-o, --output string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).</p></td></tr><tr><td colspan=2>-R, --recursive</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.</p></td></tr><tr><td colspan=2>--show-managed-fields</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, keep the managedFields when printing objects in JSON or YAML format.</p></td></tr><tr><td colspan=2>--template string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].</p></td></tr></tbody></table><h2 id=heading></h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--as string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username to impersonate for the operation. User could be a regular user or a service account in a namespace.</p></td></tr><tr><td colspan=2>--as-group strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Group to impersonate for the operation, this flag can be repeated to specify multiple groups.</p></td></tr><tr><td colspan=2>--as-uid string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>UID to impersonate for the operation.</p></td></tr><tr><td colspan=2>--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "$HOME/.kube/cache"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Default cache directory</p></td></tr><tr><td colspan=2>--certificate-authority string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a cert file for the certificate authority</p></td></tr><tr><td colspan=2>--client-certificate string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client certificate file for TLS</p></td></tr><tr><td colspan=2>--client-key string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client key file for TLS</p></td></tr><tr><td colspan=2>--cluster string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig cluster to use</p></td></tr><tr><td colspan=2>--context string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig context to use</p></td></tr><tr><td colspan=2>--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for notReady:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--disable-compression</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, opt-out of response compression for all requests to the server</p></td></tr><tr><td colspan=2>--insecure-skip-tls-verify</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure</p></td></tr><tr><td colspan=2>--kubeconfig string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to the kubeconfig file to use for CLI requests.</p></td></tr><tr><td colspan=2>--match-server-version</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Require server version to match client version</p></td></tr><tr><td colspan=2>-n, --namespace string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If present, the namespace scope for this CLI request</p></td></tr><tr><td colspan=2>--password string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Password for basic authentication to the API server</p></td></tr><tr><td colspan=2>--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)</p></td></tr><tr><td colspan=2>--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "profile.pprof"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the file to write the profile to</p></td></tr><tr><td colspan=2>--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "0"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.</p></td></tr><tr><td colspan=2>-s, --server string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The address and port of the Kubernetes API server</p></td></tr><tr><td colspan=2>--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 1m0s</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction</p></td></tr><tr><td colspan=2>--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "cadvisor"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database name</p></td></tr><tr><td colspan=2>--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "localhost:8086"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database host:port</p></td></tr><tr><td colspan=2>--storage-driver-password string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database password</p></td></tr><tr><td colspan=2>--storage-driver-secure</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>use secure connection with database</p></td></tr><tr><td colspan=2>--storage-driver-table string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "stats"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>table name</p></td></tr><tr><td colspan=2>--storage-driver-user string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database username</p></td></tr><tr><td colspan=2>--tls-server-name string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used</p></td></tr><tr><td colspan=2>--token string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Bearer token for authentication to the API server</p></td></tr><tr><td colspan=2>--user string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig user to use</p></td></tr><tr><td colspan=2>--username string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username for basic authentication to the API server</p></td></tr><tr><td colspan=2>--version version[=true]</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version</p></td></tr><tr><td colspan=2>--warnings-as-errors</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Treat warnings received from the server as errors and exit with a non-zero exit code</p></td></tr></tbody></table><h2 id=see-also>See Also</h2><ul><li><a href=../>kubectl set</a> - Set specific features on objects</li></ul></div><div class=td-content style=page-break-before:always><h1 id=pg-e9c5704d912a656bcc627016d1045699>6 - kubectl set subject</h1><h2 id=synopsis>Synopsis</h2><p>Update the user, group, or service account in a role binding or cluster role binding.</p><pre tabindex=0><code>kubectl set subject (-f FILENAME | TYPE NAME) [--user=username] [--group=groupname] [--serviceaccount=namespace:serviceaccountname] [--dry-run=server|client|none] </code></pre><h2 id=examples>Examples</h2><pre tabindex=0><code> # Update a cluster role binding for serviceaccount1 kubectl set subject clusterrolebinding admin --serviceaccount=namespace:serviceaccount1 # Update a role binding for user1, user2, and group1 kubectl set subject rolebinding admin --user=user1 --user=user2 --group=group1 # Print the result (in YAML format) of updating rolebinding subjects from a local, without hitting the server kubectl create rolebinding admin --role=admin --user=admin -o yaml --dry-run=client | kubectl set subject --local -f - --user=foo -o yaml </code></pre><h2 id=options>Options</h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--all</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Select all resources, in the namespace of the specified resource types</p></td></tr><tr><td colspan=2>--allow-missing-template-keys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: true</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.</p></td></tr><tr><td colspan=2>--dry-run string[="unchanged"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.</p></td></tr><tr><td colspan=2>--field-manager string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "kubectl-set"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the manager used to track field ownership.</p></td></tr><tr><td colspan=2>-f, --filename strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Filename, directory, or URL to files the resource to update the subjects</p></td></tr><tr><td colspan=2>--group strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Groups to bind to the role</p></td></tr><tr><td colspan=2>-h, --help</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>help for subject</p></td></tr><tr><td colspan=2>-k, --kustomize string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Process the kustomization directory. This flag can't be used together with -f or -R.</p></td></tr><tr><td colspan=2>--local</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, set subject will NOT contact api-server but run locally.</p></td></tr><tr><td colspan=2>-o, --output string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).</p></td></tr><tr><td colspan=2>-R, --recursive</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.</p></td></tr><tr><td colspan=2>-l, --selector string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.</p></td></tr><tr><td colspan=2>--serviceaccount strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Service accounts to bind to the role</p></td></tr><tr><td colspan=2>--show-managed-fields</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, keep the managedFields when printing objects in JSON or YAML format.</p></td></tr><tr><td colspan=2>--template string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].</p></td></tr><tr><td colspan=2>--user strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Usernames to bind to the role</p></td></tr></tbody></table><h2 id=heading></h2><table style=width:100%;table-layout:fixed><col span=1 style=width:10px><col span=1><tbody><tr><td colspan=2>--as string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username to impersonate for the operation. User could be a regular user or a service account in a namespace.</p></td></tr><tr><td colspan=2>--as-group strings</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Group to impersonate for the operation, this flag can be repeated to specify multiple groups.</p></td></tr><tr><td colspan=2>--as-uid string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>UID to impersonate for the operation.</p></td></tr><tr><td colspan=2>--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "$HOME/.kube/cache"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Default cache directory</p></td></tr><tr><td colspan=2>--certificate-authority string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a cert file for the certificate authority</p></td></tr><tr><td colspan=2>--client-certificate string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client certificate file for TLS</p></td></tr><tr><td colspan=2>--client-key string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to a client key file for TLS</p></td></tr><tr><td colspan=2>--cluster string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig cluster to use</p></td></tr><tr><td colspan=2>--context string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The name of the kubeconfig context to use</p></td></tr><tr><td colspan=2>--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for notReady:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 300</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Indicates the tolerationSeconds of the toleration for unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.</p></td></tr><tr><td colspan=2>--disable-compression</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, opt-out of response compression for all requests to the server</p></td></tr><tr><td colspan=2>--insecure-skip-tls-verify</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure</p></td></tr><tr><td colspan=2>--kubeconfig string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Path to the kubeconfig file to use for CLI requests.</p></td></tr><tr><td colspan=2>--match-server-version</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Require server version to match client version</p></td></tr><tr><td colspan=2>-n, --namespace string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>If present, the namespace scope for this CLI request</p></td></tr><tr><td colspan=2>--password string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Password for basic authentication to the API server</p></td></tr><tr><td colspan=2>--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "none"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)</p></td></tr><tr><td colspan=2>--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "profile.pprof"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Name of the file to write the profile to</p></td></tr><tr><td colspan=2>--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "0"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.</p></td></tr><tr><td colspan=2>-s, --server string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>The address and port of the Kubernetes API server</p></td></tr><tr><td colspan=2>--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 1m0s</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction</p></td></tr><tr><td colspan=2>--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "cadvisor"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database name</p></td></tr><tr><td colspan=2>--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "localhost:8086"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database host:port</p></td></tr><tr><td colspan=2>--storage-driver-password string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database password</p></td></tr><tr><td colspan=2>--storage-driver-secure</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>use secure connection with database</p></td></tr><tr><td colspan=2>--storage-driver-table string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "stats"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>table name</p></td></tr><tr><td colspan=2>--storage-driver-user string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "root"</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>database username</p></td></tr><tr><td colspan=2>--tls-server-name string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used</p></td></tr><tr><td colspan=2>--token string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Bearer token for authentication to the API server</p></td></tr><tr><td colspan=2>--username string</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Username for basic authentication to the API server</p></td></tr><tr><td colspan=2>--version version[=true]</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version</p></td></tr><tr><td colspan=2>--warnings-as-errors</td></tr><tr><td></td><td style=line-height:130%;word-wrap:break-word><p>Treat warnings received from the server as errors and exit with a non-zero exit code</p></td></tr></tbody></table><h2 id=see-also>See Also</h2><ul><li><a href=../>kubectl set</a> - Set specific features on objects</li></ul></div></main></div></div><footer class="bg-dark py-5 row d-print-none"><div class="container-fluid mx-sm-5"><div class=row><div class="col-5 col-sm-7 text-center order-2 footer-main"><p><span class=copyright-notice>&copy; 2025 The Kubernetes Authors | Documentation Distributed under <a href=https://git.k8s.io/website/LICENSE class=light-text>CC BY 4.0</a></span></p><p><span class=copyright-notice>&copy; 2025 The Linux Foundation &reg;. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href=https://www.linuxfoundation.org/trademark-usage class=light-text>Trademark Usage page</a></span></p><p><span class=certification-notice>ICP license: 京ICP备17074266号-3</span></p></div><div class="col col-sm-2 text-xs-center order-1"><ul class="list-inline mb-0 footer-icons"><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title aria-label><a class=text-white target=_blank rel=noopener href=https://youtube.com/kubernetescommunity aria-label><i class="fa-brands fa-youtube"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title aria-label><a class=text-white target=_blank rel=noopener href=https://discuss.kubernetes.io aria-label><i class="fa-solid fa-envelope"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title aria-label><a class=text-white target=_blank rel=noopener href=https://serverfault.com/questions/tagged/kubernetes aria-label><i class="fa-brands fa-stack-overflow"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title aria-label><a class=text-white target=_blank rel=noopener href=https://www.linkedin.com/company/kubernetes/ aria-label><i class="fa-brands fa-linkedin"></i></a></li></ul></div><div class="col col-sm-2 text-right text-xs-center order-3"><ul class="list-inline mb-0 footer-icons"><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title aria-label><a class=text-white target=_blank rel=noopener href=https://k8s.dev/ aria-label><i class="fa-solid fa-laptop-code"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title aria-label><a class=text-white target=_blank rel=noopener href=https://github.com/kubernetes/kubernetes aria-label><i class="fa-brands fa-github"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title aria-label><a class=text-white target=_blank rel=noopener href=https://slack.k8s.io aria-label><i class="fa-brands fa-slack"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title aria-label><a class=text-white target=_blank rel=noopener href="https://calendar.google.com/calendar/embed?src=calendar%40kubernetes.io" aria-label><i class="fa-solid fa-calendar-days"></i></a></li></ul></div></div></div></footer></div><script src=/js/script.js></script><script src=/js/main.min.031dd99c8ea4a3ac01c74e017d31d12a0764a2366ec05be9f67257af0c809cfe.js integrity="sha256-Ax3ZnI6ko6wBx04BfTHRKgdkojZuwFvp9nJXrwyAnP4=" crossorigin=anonymous></script><script src=/js/split-1.6.0.js integrity=sha384-0blL3GqHy6+9fw0cyY2Aoiwg4onHAtslAs4OkqZY7UQBrR65/K4gI+hxLdWDrjpz></script><script>let splitInstance=null;function enableSplitter(e){e.matches?splitInstance||(splitInstance=Split(["#sidebarnav","#maindoc"],{sizes:[20,80],minSize:100})):splitInstance&&(splitInstance.destroy(),splitInstance=null)}const screenWidthMediaQuery=window.matchMedia("(min-width: 768px)"),eleNav=document.getElementById("sidebarnav");eleNav!==null&&(enableSplitter(screenWidthMediaQuery),screenWidthMediaQuery.addListener(enableSplitter))</script><script defer src=/js/detect-js.min.01b26bef8719aa29fb17d861978451b8fbee4b6d1576627b1e1c94dba3084ecc.js integrity="sha256-AbJr74cZqin7F9hhl4RRuPvuS20VdmJ7HhyU26MITsw=" crossorigin=anonymous></script></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10