mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 15:46:57 +01:00
Update code block styling
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
aef9f780f1
commit
8ee8dd2fd8
@@ -44,6 +44,7 @@ master. The host name looks similar to `ip-10-0-1-163.ec2.internal`.
|
||||
master host. Ensure that you use the same SSH key you specified during the
|
||||
installation:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ ssh -i <ssh-key-path> core@<master-hostname>
|
||||
----
|
||||
|
||||
@@ -15,6 +15,7 @@ client and redistribute them.
|
||||
|
||||
. Annotate the route with the desired cookie name:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc annotate route <route_name> router.openshift.io/<cookie_name>="-<cookie_annotation>"
|
||||
----
|
||||
@@ -22,12 +23,14 @@ $ oc annotate route <route_name> router.openshift.io/<cookie_name>="-<cookie_ann
|
||||
For example, to annotate the cookie name of `my_cookie` to the `my_route` with
|
||||
the annotation of `my_cookie_anno`:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc annotate route my_route router.openshift.io/my_cookie="-my_cookie_anno"
|
||||
----
|
||||
|
||||
. Save the cookie, and access the route:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ curl $my_route -k -c /tmp/my_cookie
|
||||
----
|
||||
----
|
||||
|
||||
@@ -41,9 +41,9 @@ metadata:
|
||||
name: my-example-custom-ca-deployment
|
||||
namespace: my-example-custom-ca-ns
|
||||
spec:
|
||||
. . .
|
||||
...
|
||||
spec:
|
||||
. . .
|
||||
...
|
||||
containers:
|
||||
- name: my-container-that-needs-custom-ca
|
||||
volumeMounts:
|
||||
|
||||
@@ -16,6 +16,7 @@ To create your own custom project template:
|
||||
|
||||
. Generate the default project template:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc adm create-bootstrap-project-template -o yaml > template.yaml
|
||||
----
|
||||
@@ -26,6 +27,7 @@ objects or modifying existing objects.
|
||||
. The project template must be created in the `openshift-config` namespace. Load
|
||||
your modified template:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc create -f template.yaml -n openshift-config
|
||||
----
|
||||
@@ -40,6 +42,7 @@ $ oc create -f template.yaml -n openshift-config
|
||||
** Using the CLI:
|
||||
... Edit the `project.config.openshift.io/cluster` resource:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc edit project.config.openshift.io/cluster
|
||||
----
|
||||
|
||||
@@ -14,6 +14,7 @@ The default behavior of the Ingress Controller is to admit routes with a wildcar
|
||||
. Configure the wildcard policy.
|
||||
.. Use the following command to edit the `IngressController` resource:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc edit IngressController
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user