mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
////
|
|
This PROCEDURE module included in the following assemblies:
|
|
* service_mesh/v1x/prepare-to-deploy-applications-ossm.adoc
|
|
* service_mesh/v2x/prepare-to-deploy-applications-ossm.adoc
|
|
////
|
|
|
|
[id="ossm-tutorial-bookinfo-adding-destination-rules_{context}"]
|
|
= Adding default destination rules
|
|
|
|
Before you can use the Bookinfo application, you have to add default destination rules. There are two preconfigured YAML files, depending on whether or not you enabled mutual transport layer security (TLS) authentication.
|
|
|
|
.Procedure
|
|
|
|
. To add destination rules, run one of the following commands:
|
|
** If you did not enable mutual TLS:
|
|
+
|
|
|
|
[source,bash,subs="attributes"]
|
|
----
|
|
$ oc apply -n bookinfo -f https://raw.githubusercontent.com/Maistra/istio/maistra-{MaistraVersion}/samples/bookinfo/networking/destination-rule-all.yaml
|
|
----
|
|
|
|
** If you enabled mutual TLS:
|
|
+
|
|
|
|
[source,bash,subs="attributes"]
|
|
----
|
|
$ oc apply -n bookinfo -f https://raw.githubusercontent.com/Maistra/istio/maistra-{MaistraVersion}/samples/bookinfo/networking/destination-rule-all-mtls.yaml
|
|
----
|