OC-CREATE-ROLEBINDING(1)

๐Ÿ“ฆ
version 4.22.0 ยท 2 versions
, in nixpkgs unstable

๐Ÿ’– 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 is 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. 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 โ€” If true, 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 perform kubectl apply on 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 โ€” If true, keep the managedFields when 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 (or true), warn, ignore (or false). "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is 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 โ€” If true, opt-out of response compression for all requests to the server. uncompressed and unbothered. ๐Ÿ’…
  • --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. ๐Ÿšจ
  • --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. 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