Skip to content

Commit

Permalink
update nginx ingress to create nlb instead of classic lb in AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
siasin committed Nov 7, 2024
1 parent 6392161 commit caae5e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contrib/sticky-session/ingress-dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ metadata:
app: ibm-odm-prod
ingressroutes: ${RELEASE_NAME}
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/backend-protocol: https
nginx.ingress.kubernetes.io/affinity: cookie

spec:
ingressClassName: nginx
rules:
- http:
paths:
Expand Down
2 changes: 1 addition & 1 deletion contrib/sticky-session/ingress-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
app: ibm-odm-prod
ingressroutes: ${RELEASE_NAME}
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/backend-protocol: https

spec:
ingressClassName: nginx
rules:
- http:
paths:
Expand Down
14 changes: 10 additions & 4 deletions platform/eks/README-NGINX.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ The aim of this complementary documentation is to explain how to replace the **A

You must have created an EKS cluster and set up your environment by following step 1 of [Deploying IBM Operational Decision Manager on Amazon EKS](README.md#1-prepare-your-environment-20-min).

> **Note**:
> Make sure that AWS Load Balancer Controller is not provisioned in this cluster.

## Provision an NGINX Ingress Controller

You can replace the [Provision an AWS Load Balancer Controller](README.md#d-provision-an-aws-load-balancer-controller) step by provisioning an NGINX Ingress Controller with the following commands.

```bash
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install my-odm-nginx ingress-nginx/ingress-nginx
helm install my-odm-nginx ingress-nginx/ingress-nginx --set controller.service.annotations."service\.beta\.kubernetes\.io/aws-load-balancer-type"=nlb
```

For more information, refer to the [ingress-nginx readme](https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx#install-chart).
Expand All @@ -24,7 +28,7 @@ The `my-odm-nginx` service should have an available `External-IP` when you run t
kubectl get service my-odm-nginx-ingress-nginx-controller
```

You can then go back to the [main documentation](README.md#2-create-an-rds-database-10-min) to continue Step 2 to Step 4.
You can then go back to the main documentation to continue [Step 2: Create an RDS database](README.md#2-create-an-rds-database-10-min) and [Step 3: Prepare your environment for the ODM installation](README.md#3-prepare-your-environment-for-the-odm-installation-5-min).

## Install an ODM release with NGINX Ingress Controller

Expand Down Expand Up @@ -70,10 +74,12 @@ export LICENSING_URL=$(kubectl get ingress ibm-licensing-service-instance -n ibm
export TOKEN=$(kubectl get secret ibm-licensing-token -n ibm-common-services -o jsonpath='{.data.token}' |base64 -d)
```

You can access the `http://${LICENSING_URL}/status?token=${TOKEN}` URL to view the licensing usage or retrieve the licensing report .zip file by running:
You can access the `http://${LICENSING_URL}/ibm-licensing-service-instance/status?token=${TOKEN}` URL to view the licensing usage.

Otherwise, you can also retrieve the licensing report .zip file by running:

```bash
curl "http://${LICENSING_URL}/snapshot?token=${TOKEN}" --output report.zip
curl "http://${LICENSING_URL}/ibm-licensing-service-instance/snapshot?token=${TOKEN}" --output report.zip
```

If your IBM License Service instance is not running properly, refer to this [troubleshooting page](https://www.ibm.com/docs/en/cpfs?topic=software-troubleshooting).

0 comments on commit caae5e8

Please sign in to comment.