OC-CREATE-SERVICE-CLUSTERIP(1)
๐
OC CREATE SERVICE(1) โ oc create service clusterip
okay so bestie, welcome to the oc create service clusterip manual page ๐ this whole thing lives in the OpenShift CLI User Manuals, and honestly? it's giving "let me spin up a ClusterIP service real quick, no cap." let's get into it ๐
โจ NAME โจ
oc create service clusterip โ literally just creates a ClusterIP service ๐ (yes, that's the whole job, and she does it flawlessly)
๐ธ SYNOPSIS ๐ธ
oc create service clusterip [OPTIONS]
๐ฆ DESCRIPTION ๐ฆ
Create a ClusterIP service with the specified name. that's it, that's the vibe ๐ give her a name and she'll hand you back a ClusterIP service, periodt.
โญ OPTIONS โญ
--allow-missing-template-keys=trueโ if true, she'll ignore any errors in templates when a field or map key is missing in the template. lowkey only applies togolangandjsonpathoutput formats, iykyk.--clusterip=""โ assign your own ClusterIP, or set it to'None'for a'headless'service (no loadbalancing). headless era ๐ซถ--dry-run="none"โ must be"none","server", or"client". if it's client strategy, she only prints the object that would be sent, without sending it. if it's server strategy, she submits a server-side request without persisting the resource. manifesting the service but not committing to it ๐ญ--field-manager="kubectl-create"โ name of the manager used to track field ownership.-o,--output=""โ output format. one of: (json,yaml,kyaml,name,go-template,go-template-file,template,templatefile,jsonpath,jsonpath-as-json,jsonpath-file).--save-config=falseโ if true, the configuration of the current object will be saved in its annotation. otherwise, the annotation stays unchanged. this flag is useful when you wanna performkubectl applyon this object in the future ๐ฎ--show-managed-fields=falseโ if true, keep themanagedFieldswhen printing objects in JSON or YAML format.--tcp=[]โ port pairs can be specified as'<port>:<targetPort>'. this is the good stuff ๐--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โฉ ].--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'll 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. like, zero notes, just vibes ๐
๐ OPTIONS INHERITED FROM PARENT COMMANDS ๐
these are the ones she got from her parents, 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="/homeless-shelter/.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 โ bestie, be so for real before you turn this on.--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.--match-server-version=falseโ require server version to match client version.-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).--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.-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. she said "not today" ๐ค
๐ง EXAMPLE ๐ง
# Create a new ClusterIP service named my-cs
oc create service clusterip my-cs --tcp=5678:8080
# Create a new ClusterIP service named my-cs (in headless mode)
oc create service clusterip my-cs --clusterip="None"
see how easy?? ate and left no crumbs ๐ฅ
๐ SEE ALSO ๐
๐ HISTORY ๐
June 2016, ported from the Kubernetes man-doc generator. vintage, honestly.
and that's the whole page, bestie ๐ฆ Openshift CLI User Manuals energy, Openshift / Openshift CLI User Manuals, June 2016 โ she's been serving since 2016 and she's still that girl ๐
โจ
๐ฆ 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