OC-CREATE-ROUTE-PASSTHROUGH(1)
OC-CREATE-ROUTE-PASSTHROUGH(1) π
okay so bestie, this is a page from the Openshift CLI User Manuals β it's oc create route passthrough, and it's literally the glow-up your service deserves. June 2016 energy but the info is timeless, fr fr. β¨
π NAME π
oc create route passthrough β make a route that uses passthrough TLS termination, no cap π
π¦ SYNOPSIS π¦
oc create route passthrough [OPTIONS]
πΈ DESCRIPTION πΈ
Create a route that uses passthrough TLS termination. That's the whole vibe. π₯
You gotta tell it which service to expose (either just its name, or using the type/name syntax) via the --service flag. Like, it needs to know who the main character is. π
β¨ OPTIONS β¨
--allow-missing-template-keys=trueβ iftrue, ignore any errors in templates when a field or map key is missing in the template. Only applies togolangandjsonpathoutput formats, iykyk.--dry-run="none"β must be"none","server", or"client". If it's the client strategy, it only prints the object that would be sent, without sending it (window shopping ποΈ). If it's the server strategy, it submits a server-side request without persisting the resource.--hostname=""β set a hostname for the new route π--insecure-policy=""β set an insecure policy for the new route π-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 π--port=""β name of the service port or number of the container port the route will route traffic to--save-config=falseβ iftrue, the configuration of the current object will be saved in its annotation. Otherwise the annotation stays unchanged. This flag is useful when you want to performkubectl applyon this object in the future. future-proofing, iconic.--service=""β name of the service that the new route is exposing--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].--validate="ignore"β must be one of:strict(ortrue),warn,ignore(orfalse). Here's the tea β:"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. choose wisely bestie π--wildcard-policy=""β sets theWilcardPolicyfor the hostname; the default is"None". Valid values are"None"and"Subdomain".
π 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.--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β iftrue, opt out of response compression for all requests to the server--insecure-skip-tls-verify=falseβ iftrue, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure π¨ (yes, actually insecure, not just a vibe)--kubeconfig=""β path to the kubeconfig file to use for CLI requests.--kuberc=""β path to thekubercfile 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's 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 π
π₯ EXAMPLE π₯
# Create a passthrough route named "my-route" that exposes the frontend service
oc create route passthrough my-route --service=frontend
# Create a passthrough route that exposes the frontend service and specify
# a host name. If the route name is omitted, the service name will be used
oc create route passthrough --service=frontend --hostname=www.example.com
like, look at her go π«Ά
π SEE ALSO π
π§ HISTORY π§
June 2016, Ported from the Kubernetes man-doc generator
and that's the whole page, bestie β love that for us. this little icon was brought to you by Openshift and the Openshift CLI User Manuals, dated 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