OC-CREATE-ROLEBINDING(1)
๐ NAME ๐
okay so this is the OC CREATE(1) manual page for oc create rolebinding โ June 2016 edition, bestie โ and it's literally: Create a role binding for a particular role or cluster role. slay. โจ
๐ฆ SYNOPSIS ๐ฆ
oc create rolebinding [OPTIONS]
no cap, that's the whole vibe. ๐
๐ธ DESCRIPTION ๐ธ
Create a role binding for a particular role or cluster role. that's it, that's the main character energy. ๐
โจ OPTIONS โจ
--allow-missing-template-keys=trueโ if this istrue, ignore any errors in templates when a field or map key is missing in the template. Only applies togolangandjsonpathoutput formats. lowkey forgiving, we love that. ๐ซถ--clusterrole=""โ the ClusterRole this RoleBinding should reference. ๐--dry-run="none"โ 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. bestie, it's giving "preview mode" but make it official. ๐--field-manager="kubectl-create"โ name of the manager used to track field ownership. ๐--group=[]โ Groups to bind to the role. The flag can be repeated to add multiple groups. yes, repeat it, we love a list. ๐-o,--output=""โ Output format. One of:(json, yaml, kyaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). pick your aesthetic, fr fr. โจ--role=""โ Role this RoleBinding should reference. ๐ฏ--save-config=falseโ Iftrue, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to performkubectl applyon this object in the future. future-you says thank you. ๐--serviceaccount=[]โ Service accounts to bind to the role, in the format<namespace>:<name>. The flag can be repeated to add multiple service accounts. iconic format, no notes. ๐--show-managed-fields=falseโ Iftrue, keep themanagedFieldswhen printing objects in JSON or YAML format. ๐ฆ--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]. template girlies rise. ๐ง--user=[]โ Usernames to bind to the role. The flag can be repeated to add multiple users. add them all, bestie. ๐ธ--validate="ignore"โ Must be one of:strict(ortrue),warn,ignore(orfalse)."true"or"strict"will use a schema to validate the input and fail the request if invalid. It will perform server side validation ifServerSideFieldValidationis enabled on the api-server, but will fall back to less reliable client-side validation if not."warn"will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as"ignore"otherwise."false"or"ignore"will not perform any schema validation, silently dropping any unknown or duplicate fields. read that twice, bestie, it's important. ๐ญ
๐ฎ OPTIONS INHERITED FROM PARENT COMMANDS ๐ฎ
--as=""โ Username to impersonate for the operation. User could be a regular user or a service account in a namespace. main character switch-up. ๐ญ--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="/homeless-shelter/.kube/cache"โ Default cache directory. yes, that path is real. ๐--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โ Iftrue, opt-out of response compression for all requests to the server. uncompressed and unbothered. ๐--insecure-skip-tls-verify=falseโ Iftrue, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. ๐จ bestie, be careful with this one. ๐จ--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 exportingKUBECTL_KUBERC=falsefeature gate or turning off the featureKUBERC=off. noted. ๐--match-server-version=falseโ Require server version to match client version. matchy-matchy. ๐ช-n,--namespace=""โ If present, the namespace scope for this CLI request. ๐ท๏ธ--profile="none"โ Name of profile to capture. One of(none|cpu|heap|goroutine|threadcreate|block|mutex). pick your profile era. ๐--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. zero means no timeout, no cap. โณ-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. ๐๏ธ--warnings-as-errors=falseโ Treat warnings received from the server as errors and exit with a non-zero exit code. dramatic? maybe. effective? yes. ๐
๐ EXAMPLE ๐
# Create a role binding for user1, user2, and group1 using the admin cluster role
oc create rolebinding admin --clusterrole=admin --user=user1 --user=user2 --group=group1
# Create a role binding for service account monitoring:sa-dev using the admin role
oc create rolebinding admin-binding --role=admin --serviceaccount=monitoring:sa-dev
look at that syntax, ate and left no crumbs. ๐ฅ
๐ SEE ALSO ๐
the see-also is literally just oc-create(1), โ short, sweet, iconic. ๐
๐ HISTORY ๐
June 2016, Ported from the Kubernetes man-doc generator. vintage lore, honestly. ๐ฐ๏ธ
bye bestie ๐ โ cute little sign-off from the Openshift / Openshift CLI User Manuals corner: OC CREATE(1), June 2016. periodt. ๐โจ
๐ฆ where this page comes from
- nixpkgs unstable: openshift 4.22.0-202605222050
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms