Skip to content

Commit e51f881

Browse files
authored
Merge pull request #214 from DecisionsDev/review-gcp
Review GCP
2 parents 6622227 + b599a55 commit e51f881

12 files changed

+143
-116
lines changed

.secrets.baseline

+4-4
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-22T11:14:58Z",
6+
"generated_at": "2024-11-13T08:35:31Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -1340,15 +1340,15 @@
13401340
"hashed_secret": "dc081999b19ee322ee45e3d4451246b7c449db0a",
13411341
"is_secret": false,
13421342
"is_verified": false,
1343-
"line_number": 134,
1343+
"line_number": 143,
13441344
"type": "Secret Keyword",
13451345
"verified_result": null
13461346
},
13471347
{
13481348
"hashed_secret": "5a2ea68e9ea943ea31948fe51388c798e13346a9",
13491349
"is_secret": false,
13501350
"is_verified": false,
1351-
"line_number": 181,
1351+
"line_number": 185,
13521352
"type": "Secret Keyword",
13531353
"verified_result": null
13541354
}
@@ -1363,7 +1363,7 @@
13631363
"verified_result": null
13641364
},
13651365
{
1366-
"hashed_secret": "8ce7feb4d1c89d5611541bafa8f7ea83a4039665",
1366+
"hashed_secret": "e6a8430b6dc3747f44d258a127b11f4705d9ee01",
13671367
"is_secret": false,
13681368
"is_verified": false,
13691369
"line_number": 20,

platform/gcloud/README.md

+103-99
Large diffs are not rendered by default.

platform/gcloud/README_NGINX.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ For reference, see the Google Cloud documentation https://cloud.google.com/commu
1616

1717
### 1. Create a NGINX Ingress controller
1818

19-
Refer to the [Create a NGINX Ingress controller](README.md#a-create-a-nginx-ingress-controller) section if you have not created it already.
19+
- Use Helm to deploy the NGINX Ingress controller:
20+
21+
```shell
22+
helm upgrade --install ingress-nginx ingress-nginx --repo https://kubernetes.github.io/ingress-nginx --namespace ingress-nginx --create-namespace
23+
```
2024

2125
### 2. Install the ODM release
2226

@@ -27,10 +31,10 @@ The secured HTTPS communication is managed by the NGINX ingress controller. So,
2731

2832
Replace the placeholders in the [gcp-values.yaml](./gcp-values.yaml) file and install the chart:
2933

30-
```
34+
```shell
3135
helm install mycompany ibm-helm/ibm-odm-prod --version 24.1.0 \
3236
-f gcp-values.yaml \
33-
--set service.ingress.annotations={"kubernetes.io/ingress.class: nginx"}
37+
--set service.ingress.class=nginx
3438
```
3539

3640
> **Note**
@@ -44,6 +48,6 @@ Refer to the [the main README](README.md#b-check-the-topology) to check the depl
4448

4549
If your ODM instances are not running properly, please refer to [our dedicated troubleshooting page](https://www.ibm.com/docs/en/odm/9.0.0?topic=900-troubleshooting-support).
4650

47-
# License
51+
## License
4852

4953
[Apache 2.0](/LICENSE)

platform/gcloud/gcp-values.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ 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
1111
ingress:
1212
enabled: true
13-
tlsSecretRef: mynicecompany-crt-secret
13+
tlsSecretRef: mynicecompany-tls-secret
1414
host: mynicecompany.com
1515
tlsHosts:
1616
- mynicecompany.com
1717

1818
externalDatabase:
1919
type: postgres
20-
secretCredentials: <ODM_DB_SECRET>
20+
secretCredentials: odmdbsecret
2121
port: 5432
2222
serverName: <DB_ENDPOINT>
23-
databaseName: <DATABASE_NAME>
23+
databaseName: postgres
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.
-101 KB
Loading
Loading
503 KB
Loading

platform/gcloud/images/lb_rewrite.png

305 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: operator.ibm.com/v1alpha1
2+
kind: IBMLicensing
3+
metadata:
4+
name: instance
5+
spec:
6+
apiSecretToken: ibm-licensing-token
7+
datasource: datacollector
8+
httpsEnable: false
9+
ingressEnabled: true
10+
ingressOptions:
11+
annotations:
12+
kubernetes.io/ingress.class: nginx
13+
nginx.ingress.kubernetes.io/rewrite-target: /$2
14+
path: /ibm-licensing-service-instance(/|$)(.*)
15+
instanceNamespace: ibm-licensing
16+
license:
17+
accept: true

platform/gcloud/licensing-instance.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ kind: IBMLicensing
33
metadata:
44
name: instance
55
spec:
6+
apiSecretToken: ibm-licensing-token
67
datasource: datacollector
7-
instanceNamespace: ibm-common-services
88
httpsEnable: false
99
ingressEnabled: true
1010
ingressOptions:
1111
annotations:
12-
kubernetes.io/ingress.class: nginx
13-
nginx.ingress.kubernetes.io/rewrite-target: '/$2'
14-
path: /ibm-licensing-service-instance(/|$)(.*)
12+
ingress.kubernetes.io/rewrite-target: /
13+
path: /ibm-licensing-service-instance/*
14+
instanceNamespace: ibm-licensing
15+
license:
16+
accept: true

0 commit comments

Comments
 (0)