You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** The cluster must have a dynamic `StorageClass` to provision `PersistentVolumes`. See link:../../multicloud-gitops/mcg-cluster-sizing[sizing your cluster].
11
+
** Select *OpenShift \-> Red Hat OpenShift Container Platform \-> Create cluster*.
12
+
** The cluster must have a dynamic `StorageClass` to provision `PersistentVolumes`. Verify that a dynamic `StorageClass` exists before creating one by running the following command:
13
+
+
14
+
[source,terminal]
15
+
----
16
+
$ oc get storageclass -o custom-columns=NAME:.metadata.name,PROVISIONER:.provisioner,DEFAULT:.metadata.annotations."storageclass\.kubernetes\.io/is-default-class"
17
+
----
18
+
+
19
+
.Example output
20
+
+
21
+
[source,terminal]
22
+
----
23
+
NAME PROVISIONER DEFAULT
24
+
gp2-csi ebs.csi.aws.com <none>
25
+
gp3-csi ebs.csi.aws.com true
26
+
----
27
+
+
28
+
For more information about creating a dynamic `StorageClass`, see the https://docs.openshift.com/container-platform/latest/storage/dynamic-provisioning.html[Dynamic provisioning] documentation.
29
+
13
30
* Optional: A second OpenShift cluster for multicloud demonstration.
14
31
//Replaced git and podman prereqs with the tooling dependencies page
15
32
* https://validatedpatterns.io/learn/quickstart/[Install the tooling dependencies].
@@ -22,22 +39,57 @@ public or private cloud by using https://console.redhat.com/openshift/create[Red
22
39
.Procedure
23
40
24
41
. Fork the https://github.com/validatedpatterns-sandbox/travelops[travelops] repository on GitHub.
# Ideally you NEVER COMMIT THESE VALUES TO GIT (although if all passwords are
43
95
# automatically generated inside the vault this should not really matter)
@@ -50,74 +102,87 @@ secrets:
50
102
- name: rootpasswd
51
103
onMissingValue: generate
52
104
vaultPolicy: validatedPatternDefaultPolicy
53
-
54
-
# Uncomment the following if you want to enable HTPasswd oAuth
55
-
# - name: htpasswd
56
-
# vaultPrefixes:
57
-
# - global
58
-
# fields:
59
-
# - name: htpasswd
60
-
# path: '/path/to/users.htpasswd'
61
105
----
62
106
+
63
107
[WARNING]
64
108
====
65
109
Do not commit this file. You do not want to push personal credentials to GitHub. If you do not want to customize the secrets, these steps are not needed. The framework generates a random password for the config-demo application.
66
110
====
67
111
68
-
. Customize the deployment for your cluster. Run the following command:
112
+
. Customize the deployment for your cluster by following these steps:
113
+
114
+
.. Creates a new branch named my-branch and switch to it by running the following command:
69
115
+
70
116
[source,terminal]
71
117
----
72
-
git switch -c my-branch
118
+
$ git switch -c my-branch
73
119
----
120
+
121
+
.. Edit the `values-hub.yaml` file to customize the deployment for your cluster by running the following command:
74
122
+
75
123
[source,terminal]
76
124
----
77
-
vi values-hub.yaml
125
+
$ vi values-hub.yaml
78
126
----
127
+
128
+
.. Commit the changes to the `values-hub.yaml` file by running the following commands:
79
129
+
80
130
[source,terminal]
81
131
----
82
-
git add values-hub.yaml
132
+
$ git add values-hub.yaml
83
133
----
134
+
135
+
.. Commit the changes to the `values-hub.yaml` file by running the following commands:
84
136
+
85
137
[source,terminal]
86
138
----
87
-
git commit values-hub.yaml
139
+
$ git commit values-hub.yaml
88
140
----
141
+
142
+
.. Push the changes to the `values-hub.yaml` file by running the following command:
89
143
+
90
144
[source,terminal]
91
145
----
92
-
git push origin my-branch
146
+
$ git push origin my-branch
93
147
----
94
148
95
149
. Deploy the pattern by running `./pattern.sh make install` or by using the link:/infrastructure/using-validated-pattern-operator/[Validated Patterns Operator].
96
150
97
151
[id="deploying-cluster-using-patternsh-file"]
98
-
== Deploying the cluster by using the pattern.sh file
152
+
== Deploying the cluster by using the pattern.sh script
99
153
100
-
To deploy the cluster by using the `pattern.sh` file, complete the following steps:
154
+
To deploy the cluster by using the `pattern.sh` script, complete the following steps:
101
155
102
-
. Login to your cluster by running the following command:
156
+
. Navigate to the root directory of the cloned repository by running the following command:
103
157
+
104
158
[source,terminal]
105
159
----
106
-
oc login
160
+
$ cd /path/to/your/repository
107
161
----
162
+
163
+
. Log in to your cluster by running the following this procedure:
164
+
165
+
.. Obtain an API token by visiting https://oauth-openshift.apps.<your-cluster>.<domain>/oauth/token/request
166
+
167
+
.. Log in with this retrieved token by running the following command:
108
168
+
109
-
Optional: Set the `KUBECONFIG` variable for the `kubeconfig` file path:
0 commit comments