OC-ROLLOUT-RESTART(1)

πŸ“¦
version 4.22.0 Β· 2 versions
, in nixpkgs unstable

✨ OC ROLLOUT RESTART ✨

Okay bestie, so you know how sometimes your deployment is just being extra and needs a little reset? That's literally what oc rollout restart is for, from the OpenShift CLI user manual. It's giving "have you tried turning it off and on again" but make it Kubernetes. πŸ’…


🌸 SYNOPSIS 🌸

oc rollout restart [OPTIONS]

πŸ’– DESCRIPTION πŸ’–

Restart a resource.

Resource rollout will be restarted.

No cap, that's the whole vibe. You point it at a resource, it restarts the rollout. Simple as that. Periodt. ✨


πŸŽ€ OPTIONS πŸŽ€

  • --allow-missing-template-keys=true β€” 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. So like, if your template is missing a key, this just lets it slide, iykyk.
  • --field-manager="kubectl-rollout" β€” Name of the manager used to track field ownership. It's the main character that owns the fields fr fr.
  • -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 exclusive energy β€” pick one, bestie.
  • -o, --output="" β€” Output format. One of: (json, yaml, kyaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). Choose your fighter. 🌈
  • -R, --recursive=false β€” Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. It goes deep, like deep deep. πŸ¦‹
  • -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. It's a whole vibe check for your resources. βœ…
  • --show-managed-fields=false β€” If true, keep the managedFields when printing objects in JSON or YAML format. Show it all, no hiding. πŸ™ˆ
  • --template="" β€” 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 ]. Fancy formatting, obsessed. πŸ’œ

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

These are the ones you inherit from the parent command, like hand-me-downs but way more useful. 🫢

  • --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. Stack 'em up. πŸŽ€
  • --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="/homeless-shelter/.kube/cache" β€” Default cache directory. Yes, /homeless-shelter is literally the path. Not me questioning that. πŸ’€
  • --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. No compression, no problem. 😌
  • --insecure-skip-tls-verify=false β€” If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. > Bestie, be careful with this one β€” it's literally insecure, so like, know what you're doing. ⚠️
  • --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. Strict vibes only. πŸ”₯
  • -n, --namespace="" β€” If present, the namespace scope for this CLI request. Where the magic happens. ✨
  • --profile="none" β€” Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex). For when you need to profile like a pro. πŸ’…
  • --profile-output="profile.pprof" β€” Name of the file to write the profile to.
  • --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. Patient king energy. πŸ‘‘
  • -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.
  • --warnings-as-errors=false β€” Treat warnings received from the server as errors and exit with a non-zero exit code. No warnings allowed, we're being strict today. 😀

🌈 EXAMPLE 🌈

Okay so here's the tea, these examples are literally everything:

# Restart all deployments in the test-namespace namespace
oc rollout restart deployment -n test-namespace

# Restart a deployment
oc rollout restart deployment/nginx

# Restart a daemon set
oc rollout restart daemonset/abc

# Restart deployments with the app=nginx label
oc rollout restart deployment --selector=app=nginx

See? It's giving versatility. You can do all deployments, one specific one, a daemon set, or filter by label. Slay. πŸ’…βœ¨


πŸ¦‹ SEE ALSO πŸ¦‹


⭐ HISTORY ⭐

June 2016, Ported from the Kubernetes man-doc generator. A classic, an icon, a legend. πŸŽ€


✨ And that's the whole vibe, bestie! Go restart those rollouts and make them look good. No cap, you got this. πŸ’–

Openshift CLI User Manuals β€’ June 2016 β€’ OC ROLLOUT(1) β€” periodt, that's the sign-off πŸŒΈπŸ’…βœ¨

πŸ“¦ where this page comes from