Skip to content

Commit 968f0df

Browse files
committed
Simplification
1 parent 2d5eac7 commit 968f0df

File tree

4 files changed

+35
-39
lines changed

4 files changed

+35
-39
lines changed

.secrets.baseline

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2024-11-12T16:31:10Z",
6+
"generated_at": "2024-11-13T08:35:31Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -292,15 +292,15 @@
292292
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
293293
"is_secret": false,
294294
"is_verified": false,
295-
"line_number": 104,
295+
"line_number": 113,
296296
"type": "Secret Keyword",
297297
"verified_result": null
298298
},
299299
{
300300
"hashed_secret": "c94cfbe098fb5c2eedde2bb22c78fe2cd7e9a0e8",
301301
"is_secret": false,
302302
"is_verified": false,
303-
"line_number": 162,
303+
"line_number": 171,
304304
"type": "Secret Keyword",
305305
"verified_result": null
306306
}
@@ -1312,15 +1312,15 @@
13121312
"hashed_secret": "dc081999b19ee322ee45e3d4451246b7c449db0a",
13131313
"is_secret": false,
13141314
"is_verified": false,
1315-
"line_number": 142,
1315+
"line_number": 143,
13161316
"type": "Secret Keyword",
13171317
"verified_result": null
13181318
},
13191319
{
13201320
"hashed_secret": "5a2ea68e9ea943ea31948fe51388c798e13346a9",
13211321
"is_secret": false,
13221322
"is_verified": false,
1323-
"line_number": 189,
1323+
"line_number": 185,
13241324
"type": "Secret Keyword",
13251325
"verified_result": null
13261326
}
@@ -1335,7 +1335,7 @@
13351335
"verified_result": null
13361336
},
13371337
{
1338-
"hashed_secret": "8ce7feb4d1c89d5611541bafa8f7ea83a4039665",
1338+
"hashed_secret": "e6a8430b6dc3747f44d258a127b11f4705d9ee01",
13391339
"is_secret": false,
13401340
"is_verified": false,
13411341
"line_number": 20,
@@ -1348,7 +1348,7 @@
13481348
"hashed_secret": "b11974a9da0d56698df935ab86e19b127804d6d4",
13491349
"is_secret": false,
13501350
"is_verified": false,
1351-
"line_number": 71,
1351+
"line_number": 72,
13521352
"type": "Secret Keyword",
13531353
"verified_result": null
13541354
}

platform/gcloud/README.md

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ Regions and zones (used below) can be listed respectively with `gcloud compute r
119119
```
120120

121121
> [!NOTE]
122-
> You can also retrieve the command line to configure `kubectl` from the Google Cloud Console using the **Kubernetes Engine** > **Clusters** panel and clicking **Connect** on the dedicated cluster.
123-
> ![Connection](images/connection.png)
122+
> You can also retrieve the command line to configure `kubectl` from the Google Cloud Console using the **Kubernetes Engine** > **Clusters** panel and clicking **Connect** on the dedicated cluster.
123+
> ![Connection](images/connection.png)
124124
125125
- Check your environment
126126

@@ -138,36 +138,32 @@ We will use the Google Cloud Platform console to create the database instance.
138138

139139
- Go to the [SQL context](https://console.cloud.google.com/sql), and then click the **CREATE INSTANCE** button
140140
- Click **Choose PostgreSQL**
141+
- Database version: `PostgreSQL 15`
141142
- Instance ID: ``<YourInstanceName>``
142143
- Password: ``<PASSWORD>`` - Take note of this password.
143-
- Database version: `PostgreSQL 15`
144144
- Region: ``<REGION>`` (must be the same as the cluster for the communication to be optimal between the database and the ODM instance)
145-
- Keep **Multiple zones** for Zonal availability to the highest availability
145+
- Eventually select **Multiple zones** for Zonal availability for redundancy
146146
- Expand **Show customization option** and expand **Connections**
147147
- As *Public IP* is selected by default, in Authorized networks, click the **ADD NETWORK** button, put a name and add *0.0.0.0/0* for Network, then click **DONE**.
148148
> NOTE: It is not recommended to use a public IP. In a production environment, you should use a private IP.
149149
- Click **CREATE INSTANCE**
150150

151151
After the database instance is created, you can drill on the SQL instance overview to retrieve needed information to connect to this instance, like the IP address and the connection name. Take note of the **Public IP address**.
152152

153-
<img width="1000" height="630" src='./images/database_overview.png'/>
154-
155-
> NOTE: A default *postgres* database is created with a default *postgres* user. You can change the password of the postgres user in the **Users** panel by selecting the *postgres* user, and then using the **Change password** menu:
156-
> <img width="1000" height="360" src='./images/database_changepassword.png'/>
153+
![Database overview](images/database_overview.png)
157154

158155
#### b. Create the database secret for Google Cloud SQL PostgreSQL
159156

160157
To secure access to the database, you must create a secret that encrypts the database user and password before you install the Helm release.
161158

162-
```
163-
kubectl create secret generic <ODM_DB_SECRET> \
164-
--from-literal=db-user=<USERNAME> \
165-
--from-literal=db-password=<PASSWORD> 
159+
```shell
160+
kubectl create secret generic odmdbsecret \
161+
--from-literal=db-user=postgres \
162+
--from-literal=db-password=<PASSWORD>
166163
```
167164

168165
Where:
169-
- `<ODM_DB_SECRET>` is the secret name
170-
- `<USERNAME>` is the database username (default is *postgres*)
166+
171167
- `<PASSWORD>` is the database password (PASSWORD set during the PostgreSQL instance creation above)
172168

173169
### 3. Prepare your environment for the ODM installation (10 min)
@@ -180,39 +176,39 @@ To get access to the ODM material, you need an IBM entitlement key to pull the i
180176

181177
- In the Container software library tile, verify your entitlement on the **View library** page, and then go to **Get entitlement key** to retrieve the key.
182178

183-
#### b. Create a pull secret by running a kubectl create secret command.
179+
#### b. Create a pull secret by running a kubectl create secret command
184180

185-
```
186-
kubectl create secret docker-registry <REGISTRY_SECRET> \
181+
```shell
182+
kubectl create secret docker-registry registrysecret \
187183
--docker-server=cp.icr.io \
188184
--docker-username=cp \
189-
--docker-password="<API_KEY_GENERATED>" \
185+
--docker-password='<API_KEY_GENERATED>' \
190186
--docker-email=<USER_EMAIL>
191187
```
192188

193189
Where:
194190

195-
* `<REGISTRY_SECRET>` is the secret name.
196-
* `<API_KEY_GENERATED>` is the entitlement key from the previous step. Make sure you enclose the key in double-quotes.
197-
* `<USER_EMAIL>` is the email address associated with your IBMid.
191+
- `<API_KEY_GENERATED>` is the entitlement key from the previous step. Make sure you enclose the key in quotes.
192+
- `<USER_EMAIL>` is the email address associated with your IBMid.
198193

199-
> NOTE: The `cp.icr.io` value for the docker-server parameter is the only registry domain name that contains the images. You must set the docker-username to `cp` to use an entitlement key as docker-password.
194+
> [!NOTE]
195+
> The `cp.icr.io` value for the docker-server parameter is the only registry domain name that contains the images. You must set the docker-username to `cp` to use an entitlement key as docker-password.
200196
201-
Take note of the secret name so that you can set it for the *image.pullSecrets* parameter when you run a helm install command of your containers. The *image.repository* parameter will later be set to `cp.icr.io/cp/cp4a/odm`.
197+
The *image.repository* parameter will later be set to `cp.icr.io/cp/cp4a/odm`.
202198

203199
#### c. Add the public IBM Helm charts repository
204200

205-
```
201+
```shell
206202
helm repo add ibm-helm https://raw.githubusercontent.com/IBM/charts/master/repo/ibm-helm
207203
helm repo update
208204
```
209205

210206
#### d. Check you can access ODM charts
211207

212-
```
208+
```shell
213209
helm search repo ibm-odm-prod
214-
NAME CHART VERSION APP VERSION DESCRIPTION
215-
ibm-helm/ibm-odm-prod 24.0.0 9.0.0.0 IBM Operational Decision Manager
210+
NAME CHART VERSION APP VERSION DESCRIPTION
211+
ibm-helm/ibm-odm-prod 24.1.0 9.0.0.1 IBM Operational Decision Manager
216212
```
217213

218214
### 4. Manage a digital certificate (2 min)
@@ -245,8 +241,8 @@ It automatically creates an HTTPS GKE load balancer. We will disable the ODM int
245241

246242
- Get the [gcp-values.yaml](./gcp-values.yaml) file and replace the following keys:
247243

248-
- `<REGISTRY_SECRET>`: the name of the secret containing the IBM Entitled Registry key
249-
- `<ODM_DB_SECRET>`: the name of the secret containing the database user and password
244+
- `registrysecret`: the name of the secret containing the IBM Entitled Registry key
245+
- `odmdbsecret`: the name of the secret containing the database user and password
250246
- `<DB_ENDPOINT>`: the database IP
251247
- `<DATABASE_NAME>`: the database name (default is postgres)
252248

platform/gcloud/gcp-values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ usersPassword: "odmAdmin"
44
image:
55
repository: cp.icr.io/cp/cp4a/odm
66
pullSecrets:
7-
- <REGISTRY_SECRET>
7+
- registrysecret
88

99
service:
1010
enableTLS: false
@@ -17,11 +17,11 @@ service:
1717

1818
externalDatabase:
1919
type: postgres
20-
secretCredentials: <ODM_DB_SECRET>
20+
secretCredentials: odmdbsecret
2121
port: 5432
2222
serverName: <DB_ENDPOINT>
2323
databaseName: <DATABASE_NAME>
2424
# You can get the last Google Cloud SQL PostgreSQL driver version
2525
# at https://github.com/GoogleCloudPlatform/cloud-sql-jdbc-socket-factory/releases
2626
driversUrl:
27-
- https://storage.googleapis.com/cloud-sql-java-connector/v1.7.1/postgres-socket-factory-1.7.1-jar-with-driver-and-dependencies.jar
27+
- https://storage.googleapis.com/cloud-sql-connectors-java/v1.13.1/postgres-socket-factory-1.13.1-jar-with-driver-and-dependencies.jar
Binary file not shown.

0 commit comments

Comments
 (0)