OC-CREATE-SERVICE-CLUSTERIP(1)

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

๐Ÿ’… 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 to golang and jsonpath output 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 perform kubectl apply on this object in the future ๐Ÿ”ฎ
  • --show-managed-fields=false โ€” if true, keep the managedFields when 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 (or true), warn, ignore (or false). "true" or "strict" will use a schema to validate the input and fail the request if invalid โ€” it'll 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. 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 exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=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 ๐Ÿ’–

oc-create-service(1),


๐ŸŽ€ 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