OC-CREATE-ROUTE-REENCRYPT(1)
π¦ OC CREATE ROUTE(1) π¦
okay bestie, so this is oc create route reencrypt from the Openshift CLI User Manuals β yes, the whole manual is literally called Openshift CLI User Manuals, iconic naming, no notes. dated June 2016, still serving looks. let's get into it π
β¨ NAME β¨
oc create route reencrypt β literally just creates a route that uses reencrypt TLS termination. that's the whole vibe. π
β¨ SYNOPSIS β¨
oc create route reencrypt [OPTIONS]
πΈ DESCRIPTION πΈ
Create a route that uses reencrypt TLS termination. simple as that, queen. π
You tell it which service the generated route should expose using the --service flag β you can pass just the service name, or use the type/name syntax if you're feeling fancy. π«Ά
You may also specify a destination CA certificate with the --dest-ca-cert flag. and here's the tea: if you omit --dest-ca-cert, the route will use the service CA, which means the service must use a serving certificate from the serving cert signer. that's a real requirement, not a suggestion, ngl. π
π OPTIONS π
--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. (so it's a template-only little guy, don't @ me) β¨--ca-cert=""β path to a CA certificate file.--cert=""β path to a certificate file.--dest-ca-cert=""β path to a CA certificate file, used for securing the connection from the router to the destination. defaults to the Service CA. π₯--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. (like a dress rehearsal, but for your route π)--hostname=""β set a hostname for the new route--insecure-policy=""β set an insecure policy for the new route--key=""β path to a key file.-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 π--path=""β path that the router watches to route traffic to the service.--port=""β name of the service port or number of the container port the route will route traffic to--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. (future-you says thank you π«Ά)--service=""β name of the service that the new route is exposing--show-managed-fields=falseβ if true, 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)."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. β--wildcard-policy=""β sets theWilcardPolicyfor the hostname, the default is"None". valid values are"None"and"Subdomain". (yes,WilcardPolicywith oneDβ that's how it's spelled here, do not come for me π)
π§ OPTIONS INHERITED FROM PARENT COMMANDS π§
these are the family heirlooms, bestie β inherited, not invented. every single one carries over:
--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. (/homeless-shelteris genuinely the path, I'm not being dramatic π)--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 β like, actually insecure, be so serious before you flip 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 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
π EXAMPLE π
# Create a route named "my-route" that exposes the frontend service
oc create route reencrypt my-route --service=frontend --dest-ca-cert cert.cert
# Create a reencrypt route that exposes the frontend service, letting the
# route name default to the service name and the destination CA certificate
# default to the service CA
oc create route reencrypt --service=frontend
ate. both examples. copy-paste ready, bestie π«Ά
π SEE ALSO π
(that trailing comma is in the original, so it stays. we respect the source β¨)
π HISTORY π
June 2016, Ported from the Kubernetes man-doc generator. a classic, honestly. vintage. π¦
and that's the page, bestie π β brought to you by Openshift, from the Openshift CLI User Manuals, dated June 2016, filed under OC CREATE ROUTE(1). go forth and reencrypt, you absolute icon πΈπ
π¦ 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