Skip to content

Commit caae5e8

Browse files
committed
update nginx ingress to create nlb instead of classic lb in AWS
1 parent 6392161 commit caae5e8

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

contrib/sticky-session/ingress-dc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ metadata:
66
app: ibm-odm-prod
77
ingressroutes: ${RELEASE_NAME}
88
annotations:
9-
kubernetes.io/ingress.class: nginx
109
nginx.ingress.kubernetes.io/backend-protocol: https
1110
nginx.ingress.kubernetes.io/affinity: cookie
1211

1312
spec:
13+
ingressClassName: nginx
1414
rules:
1515
- http:
1616
paths:

contrib/sticky-session/ingress-ds.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ metadata:
66
app: ibm-odm-prod
77
ingressroutes: ${RELEASE_NAME}
88
annotations:
9-
kubernetes.io/ingress.class: nginx
109
nginx.ingress.kubernetes.io/backend-protocol: https
1110

1211
spec:
12+
ingressClassName: nginx
1313
rules:
1414
- http:
1515
paths:

platform/eks/README-NGINX.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ The aim of this complementary documentation is to explain how to replace the **A
66

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

9+
> **Note**:
10+
> Make sure that AWS Load Balancer Controller is not provisioned in this cluster.
11+
12+
913
## Provision an NGINX Ingress Controller
1014

1115
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.
1216

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

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

27-
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.
31+
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).
2832

2933
## Install an ODM release with NGINX Ingress Controller
3034

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

73-
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:
77+
You can access the `http://${LICENSING_URL}/ibm-licensing-service-instance/status?token=${TOKEN}` URL to view the licensing usage.
78+
79+
Otherwise, you can also retrieve the licensing report .zip file by running:
7480

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

7985
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 commit comments

Comments
 (0)