Skip to content

Commit 101053d

Browse files
committed
First part
1 parent 95e83d3 commit 101053d

File tree

2 files changed

+31
-24
lines changed

2 files changed

+31
-24
lines changed

.secrets.baseline

Lines changed: 3 additions & 3 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-08T08:23:37Z",
6+
"generated_at": "2024-11-12T16:19:56Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -1312,15 +1312,15 @@
13121312
"hashed_secret": "dc081999b19ee322ee45e3d4451246b7c449db0a",
13131313
"is_secret": false,
13141314
"is_verified": false,
1315-
"line_number": 134,
1315+
"line_number": 141,
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": 181,
1323+
"line_number": 188,
13241324
"type": "Secret Keyword",
13251325
"verified_result": null
13261326
}

platform/gcloud/README.md

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Deploying IBM Operational Decision Manager on Google GKE
22

3-
This project demonstrates how to deploy an IBM® Operational Decision Manager (ODM) clustered topology using the [container-native load balancer of GKE](https://cloud.google.com/blog/products/containers-kubernetes/container-native-load-balancing-on-gke-now-generally-available).
3+
This project demonstrates how to deploy an IBM® Operational Decision Manager (ODM) clustered topology using the [container-native load balancer of GKE](https://cloud.google.com/kubernetes-engine/docs/concepts/container-native-load-balancing).
44

55
The ODM services will be exposed using the Ingress provided by the ODM on Kubernetes Helm chart.
66
This deployment implements Kubernetes and Docker technologies.
7-
Here is the Google Cloud home page: https://cloud.google.com
7+
Here is the Google Cloud home page: <https://cloud.google.com>
88

9-
<img width="1000" height="560" src='./images/architecture.png'/>
9+
![Architecture](images/architecture.png)
1010

1111
The ODM on Kubernetes Docker images are available in the [IBM Entitled Registry](https://www.ibm.com/cloud/container-registry). The ODM Helm chart is available in the [IBM Helm charts repository](https://github.com/IBM/charts).
1212

@@ -26,6 +26,7 @@ The commands and tools have been tested on macOS and Linux.
2626
## Prerequisites
2727

2828
First, install the following software on your machine:
29+
2930
- [gcloud CLI](https://cloud.google.com/sdk/gcloud)
3031
- [kubectl](https://kubernetes.io/docs/tasks/tools/)
3132
- [Helm v3](https://helm.sh/docs/intro/install/)
@@ -40,7 +41,8 @@ Then, perform the following tasks:
4041

4142
Without the relevant billing level, some Google Cloud resources will not be created.
4243

43-
> NOTE: Prerequisites and software supported by ODM 9.0.0 are listed on [the Detailed System Requirements page](https://www.ibm.com/support/pages/ibm-operational-decision-manager-detailed-system-requirements).
44+
> [!NOTE]
45+
> Prerequisites and software supported by ODM 9.0.0 are listed on [the Detailed System Requirements page](https://www.ibm.com/support/pages/ibm-operational-decision-manager-detailed-system-requirements).
4446
4547
## Steps to deploy ODM on Kubernetes from Google GKE
4648

@@ -64,8 +66,8 @@ Refer to the [GKE quickstart](https://cloud.google.com/kubernetes-engine/docs/qu
6466

6567
After installing the `gcloud` tool, use the following command line:
6668

67-
```
68-
gcloud auth login <ACCOUNT>
69+
```shell
70+
gcloud auth login
6971
```
7072

7173
#### b. Create a GKE cluster
@@ -76,49 +78,54 @@ Regions and zones (used below) can be listed respectively with `gcloud compute r
7678

7779
- Set the project (associated to a billing account):
7880

79-
```
81+
```shell
8082
gcloud config set project <PROJECT_ID>
8183
```
8284

8385
- Set the region:
8486

85-
```
86-
gcloud config set compute/region <REGION (ex: europe-west1)>
87+
```shell
88+
gcloud config set compute/region <REGION (ex: europe-west9)>
8789
```
8890

8991
- Set the zone:
9092

91-
```
92-
gcloud config set compute/zone <ZONE (ex: europe-west1-b)>
93+
```shell
94+
gcloud config set compute/zone <ZONE (ex: europe-west9-b)>
9395
```
9496

9597
- Create a cluster and [enable autoscaling](https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-autoscaler). Here, we start with 6 nodes (16 max):
9698

97-
```
99+
```shell
98100
gcloud container clusters create <CLUSTER_NAME> \
99-
--release-channel=regular --cluster-version=1.28 \
101+
--release-channel=regular --cluster-version=1.30 \
100102
--enable-autoscaling --num-nodes=6 --total-min-nodes=1 --total-max-nodes=16
101103
```
102104

103-
> If you get a red warning about a missing gke-gcloud-auth-plugin, install it with `gcloud components install gke-gcloud-auth-plugin` and enable it for each kubectl command with `export USE_GKE_GCLOUD_AUTH_PLUGIN=True` ([more information](https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke)).
104-
105-
> NOTE: You can also create your cluster from the Google Cloud Platform using the **Kubernetes Engine** > **Clusters** panel and clicking the **Create** button
106-
> <img width="1000" height="300" src='./images/create_cluster.png'/>
105+
> [!NOTE]
106+
> If you get a red warning about a missing gke-gcloud-auth-plugin, install it with `gcloud components install gke-gcloud-auth-plugin`.
107+
> For Kubernetes versions lower than 1.26 you have to enable it for each kubectl command with `export USE_GKE_GCLOUD_AUTH_PLUGIN=True` ([more information](https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke)).
108+
> [!NOTE]
109+
> You can also create your cluster from the Google Cloud Platform using the **Kubernetes Engine** > **Clusters** panel and clicking the **Create** button
110+
> ![Create cluster](images/create_cluster.png)
107111
108112
#### c. Set up your environment
109113

110114
- Create a kubeconfig to connect to your cluster:
111-
```
115+
116+
```shell
112117
gcloud container clusters get-credentials <CLUSTER_NAME>
113118
```
114119

115-
> NOTE: 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.
116-
> <img width="1000" height="300" src='./images/connection.png'/>
120+
> [!NOTE]
121+
> 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.
122+
> ![Connection](images/connection.png)
117123
118124
- Check your environment
119125

120126
If your environment is set up correctly, you should be able to get the cluster information by running the following command:
121-
```
127+
128+
```shell
122129
kubectl cluster-info
123130
```
124131

0 commit comments

Comments
 (0)