Skip to content

Commit

Permalink
First part
Browse files Browse the repository at this point in the history
  • Loading branch information
PYLochou committed Nov 12, 2024
1 parent 95e83d3 commit 101053d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 24 deletions.
6 changes: 3 additions & 3 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": "^.secrets.baseline$",
"lines": null
},
"generated_at": "2024-11-08T08:23:37Z",
"generated_at": "2024-11-12T16:19:56Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down Expand Up @@ -1312,15 +1312,15 @@
"hashed_secret": "dc081999b19ee322ee45e3d4451246b7c449db0a",
"is_secret": false,
"is_verified": false,
"line_number": 134,
"line_number": 141,
"type": "Secret Keyword",
"verified_result": null
},
{
"hashed_secret": "5a2ea68e9ea943ea31948fe51388c798e13346a9",
"is_secret": false,
"is_verified": false,
"line_number": 181,
"line_number": 188,
"type": "Secret Keyword",
"verified_result": null
}
Expand Down
49 changes: 28 additions & 21 deletions platform/gcloud/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Deploying IBM Operational Decision Manager on Google GKE

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).
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).

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

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

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).

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

First, install the following software on your machine:

- [gcloud CLI](https://cloud.google.com/sdk/gcloud)
- [kubectl](https://kubernetes.io/docs/tasks/tools/)
- [Helm v3](https://helm.sh/docs/intro/install/)
Expand All @@ -40,7 +41,8 @@ Then, perform the following tasks:

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

> 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).
> [!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).
## Steps to deploy ODM on Kubernetes from Google GKE

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

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

```
gcloud auth login <ACCOUNT>
```shell
gcloud auth login
```

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

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

```
```shell
gcloud config set project <PROJECT_ID>
```

- Set the region:

```
gcloud config set compute/region <REGION (ex: europe-west1)>
```shell
gcloud config set compute/region <REGION (ex: europe-west9)>
```

- Set the zone:

```
gcloud config set compute/zone <ZONE (ex: europe-west1-b)>
```shell
gcloud config set compute/zone <ZONE (ex: europe-west9-b)>
```

- 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):

```
```shell
gcloud container clusters create <CLUSTER_NAME> \
--release-channel=regular --cluster-version=1.28 \
--release-channel=regular --cluster-version=1.30 \
--enable-autoscaling --num-nodes=6 --total-min-nodes=1 --total-max-nodes=16
```

> 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)).
> NOTE: You can also create your cluster from the Google Cloud Platform using the **Kubernetes Engine** > **Clusters** panel and clicking the **Create** button
> <img width="1000" height="300" src='./images/create_cluster.png'/>
> [!NOTE]
> If you get a red warning about a missing gke-gcloud-auth-plugin, install it with `gcloud components install gke-gcloud-auth-plugin`.
> 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)).
> [!NOTE]
> You can also create your cluster from the Google Cloud Platform using the **Kubernetes Engine** > **Clusters** panel and clicking the **Create** button
> ![Create cluster](images/create_cluster.png)
#### c. Set up your environment

- Create a kubeconfig to connect to your cluster:
```

```shell
gcloud container clusters get-credentials <CLUSTER_NAME>
```

> 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.
> <img width="1000" height="300" src='./images/connection.png'/>
> [!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.
> ![Connection](images/connection.png)
- Check your environment

If your environment is set up correctly, you should be able to get the cluster information by running the following command:
```

```shell
kubectl cluster-info
```

Expand Down

0 comments on commit 101053d

Please sign in to comment.