OC-CREATE-NAMESPACE(1)
π OC CREATE NAMESPACE π
Hey bestie! Welcome to the oc create namespace glow-up page. This is the OpenShift CLI manual, originally from June 2016, and we're about to make a namespace together. No cap, it's iconic.
β¨ NAME β¨
oc create namespace β Create a namespace with the specified name. Literally that's it. She's simple, she's effective, she's serving main character energy. π
πΈ SYNOPSIS πΈ
oc create namespace [OPTIONS]
π¦ DESCRIPTION π¦
Create a namespace with the specified name. Periodt. You tell her the name, she makes the namespace. It's giving "effortless queen." π
π OPTIONS π
Okay so here's where it gets juicy. Every flag, every default, every vibe. Let's go. π«Ά
--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 togolangandjsonpathoutput formats. Basically she's like "bestie, missing keys? Not my problem, I'm ignoring them." π--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. So you can peek at the tea before actually spilling it. π--field-manager="kubectl-create"β Name of the manager used to track field ownership. She's the manager. She owns the fields. Respect her authority. π-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 fighter. β¨--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 performkubectl applyon this object in the future. It's giving "save your work for later," lowkey foresight queen. π--show-managed-fields=falseβ If true, keep themanagedFieldswhen printing objects in JSON or YAML format. Show off those managed fields, bestie! β--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β©]. Ngl, this one's for the template girlies. π§--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.
She's got layers, okay? π
π OPTIONS INHERITED FROM PARENT COMMANDS π
These are the flags she inherited from her parent commands. Family heirlooms, if you will. π«Ά
--as=""β Username to impersonate for the operation. User could be a regular user or a service account in a namespace. Be someone else for a sec, it's fun. π--as-group=[]β Group to impersonate for the operation, this flag can be repeated to specify multiple groups. Collect them all like PokΓ©mon cards. π--as-uid=""β UID to impersonate for the operation. The ultimate identity flex. π--as-user-extra=[]β User extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key. Extra, extra! ποΈ--cache-dir="/homeless-shelter/.kube/cache"β Default cache directory. She's homeless-sheltered, don't ask. π--certificate-authority=""β Path to a cert file for the certificate authority. Trust issues? Same. But this one's legit. π--client-certificate=""β Path to a client certificate file for TLS. Your VIP pass. ποΈ--client-key=""β Path to a client key file for TLS. The key to the VIP lounge. ποΈ--cluster=""β The name of the kubeconfig cluster to use. Pick your cluster, bestie. π--context=""β The name of the kubeconfig context to use. Context is everything. πββοΈ--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. It's literally insecure, no cap. π¨--kubeconfig=""β Path to the kubeconfig file to use for CLI requests. Your config, your rules. ποΈ--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. Preferences, but make it optional. β¨--match-server-version=falseβ Require server version to match client version. She's picky, and honestly? Same. π-n,--namespace=""β If present, the namespace scope for this CLI request. Put a pin in it. π--profile="none"β Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex). Capture the vibes, profile the performance. π--profile-output="profile.pprof"β Name of the file to write the profile to. Save it for later. πΎ--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 chill? No, zero timeout. β³-s,--server=""β The address and port of the Kubernetes API server. Where the magic happens. π--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. Name check, but for certificates. πͺͺ--token=""β Bearer token for authentication to the API server. Your golden ticket. π«--user=""β The name of the kubeconfig user to use. Who dis? π€--warnings-as-errors=falseβ Treat warnings received from the server as errors and exit with a non-zero exit code. Dramatic? Maybe. Effective? Absolutely. π
π EXAMPLE π
Okay, classic move:
# Create a new namespace named my-namespace
oc create namespace my-namespace
See? Effortless. She ate and left no crumbs. π₯
π¦ SEE ALSO π¦
oc-create(1)β for the full family tree, bestie.
π HISTORY π
June 2016, Ported from the Kubernetes man-doc generator. She's been serving looks since 2016, and she's still iconic. π
β¨
This manual page is from June 2016, ported from the Kubernetes man-doc generator. Brought to you by the Openshift CLI User Manuals. Stay slay, bestie. π«Άππ
π¦ 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