KUBERNETES(1)(kubernetes)

πŸ’« KUBERNETES(1)(kubernetes) πŸ’«

okay bestie, sit down, hydrate, because today we're learning kubectl rollout status β€” this is from the kubernetes manual, and no, it's not boring, it's literally the command that tells you if your deploy is slaying or flopping. 🌸


✨ NAME ✨

kubectl rollout status β€” show me the status of the rollout, pls and thank you πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

kubectl rollout status [OPTIONS]

that's it. that's the whole vibe. short, iconic, does exactly what it says on the tin. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So like. It shows the status of the rollout. That's the whole job. 🫢

By default, rollout status will watch the status of the latest rollout until it's done. Like, it'll just sit there and stare at it until the rollout finishes, holding your hand the whole time. no cap. πŸ’–

But say you're impatient (real) and you do not want to wait for the rollout to finish β€” then you can use --watch=false and dip immediately. ✨

⚠️ lowkey important: if a new rollout starts in-between, then rollout status will continue watching the latest revision. It's not loyal to the old one, it moves on. πŸ™ˆ

And if you want to pin to a specific revision and abort if it is rolled over by another revision, use --revision=N where N is the revision you need to watch for. pin it like a mood board. πŸ“Œ


πŸ’… OPTIONS πŸ’…

  • -f, --filename=[] β€” Filename, directory, or URL to files identifying the resource to get from a server. ✨
  • -k, --kustomize="" β€” Process the kustomization directory. This flag can't be used together with -f or -R. it's giving "pick a lane bestie". 🚫
  • -R, --recursive=false β€” Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. πŸ—‚οΈ
  • --revision=0 β€” Pin to a specific revision for showing its status. Defaults to 0 (last revision). 🎯
  • -l, --selector="" β€” Selector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'. (e.g. -l key1=value1,key2=value2,key3 in (value3)). Matching objects must satisfy all of the specified label constraints. 🏷️
  • --timeout=0s β€” The length of time to wait before ending watch, zero means never. Any other values should contain a corresponding time unit (e.g. 1s, 2m, 3h). ⏰
  • -w, --watch=true β€” Watch the status of the rollout until it's done. the default! the main character behavior! πŸ‘€

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

these aren't even hers, she inherited them, and honestly? iconic family. πŸ‘‘

  • --as="" β€” Username to impersonate for the operation. User could be a regular user or a service account in a namespace. 🎭
  • --as-group=[] β€” Group to impersonate for the operation, this flag can be repeated to specify multiple groups. πŸ”
  • --as-uid="" β€” UID to impersonate for the operation.
  • --as-user-extra=[] β€” User extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key. πŸ”‚
  • --cache-dir="/home/username/.kube/cache" β€” Default cache directory πŸ“¦
  • --certificate-authority="" β€” Path to a cert file for the certificate authority πŸ”
  • --client-certificate="" β€” Path to a client certificate file for TLS
  • --client-key="" β€” Path to a client key file for TLS πŸ”‘
  • --cluster="" β€” The name of the kubeconfig cluster to use
  • --context="" β€” The name of the kubeconfig context to use
  • --disable-compression=false β€” If true, opt-out of response compression for all requests to the server
  • --insecure-skip-tls-verify=false β€” If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. ⚠️ literally do not unless you know what you're doing, fr fr
  • --kubeconfig="" β€” Path to the kubeconfig file to use for CLI requests.
  • --kuberc="" β€” Path to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off. 🧚
  • --match-server-version=false β€” Require server version to match client version
  • -n, --namespace="" β€” If present, the namespace scope for this CLI request
  • --password="" β€” Password for basic authentication to the API server
  • --profile="none" β€” Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex|trace) πŸ“Š
  • --profile-output="profile.pprof" β€” Name of the file to write the profile to
  • --proxy-url="" β€” Proxy URL to use for requests to the API server
  • --request-timeout="0" β€” 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. ⏳
  • -s, --server="" β€” The address and port of the Kubernetes API server
  • --tls-server-name="" β€” Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used
  • --token="" β€” Bearer token for authentication to the API server 🎟️
  • --user="" β€” The name of the kubeconfig user to use
  • --username="" β€” Username for basic authentication to the API server
  • --version=false β€” --version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version
  • --warnings-as-errors=false β€” Treat warnings received from the server as errors and exit with a non-zero exit code 🚨

πŸ“ EXAMPLE πŸ“

  # Watch the rollout status of a deployment
  kubectl rollout status deployment/nginx

look at her go. watching that deployment/nginx rollout like it's her favorite show. πŸ“Ίβœ¨


πŸ’œ SEE ALSO πŸ’œ

(yeah she has a whole family, go say hi πŸ‘‹)


πŸ“œ HISTORY πŸ“œ

January 2015, originally compiled by Eric Paris (eparis at redhat dot com) based on the kubernetes source material, but hopefully they have been automatically generated since! πŸ™ iconic of him honestly.


πŸ’– and that's the whole page bestie, every flag accounted for, nothing skipped, no crumbs left. you understood the assignment. 🫢

kubectl rollout status β€” go watch something deploy. slay. periodt. πŸ’…βœ¨

Manuals β€” User β€” KUBERNETES(1)(kubernetes) 🌸 (that's the little footer vibe, mwah, bye bestie πŸŽ€)

πŸ“¦ where this page comes from