Skip to content

Commit fc24510

Browse files
committed
update instruction to apply licensing 4.9 for nginx ingress
1 parent e8856c7 commit fc24510

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

platform/eks/README-NGINX.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,35 @@ helm install mycompany ibm-helm/ibm-odm-prod --version 24.1.0 -f eks-rds-nginx-v
5959
6060
## Track ODM usage with the IBM License Service with NGINX Ingress Controller
6161
62-
Install the IBM License Service following 7a. section of [Track ODM usage with the IBM License Service](README.md#7-track-odm-usage-with-the-ibm-license-service) step of the documentation.
62+
Install the IBM License Service following *7a.* section of [Track ODM usage with the IBM License Service](README.md#7-track-odm-usage-with-the-ibm-license-service) step of the documentation.
6363
64-
To create the IBM Licensing instance using NGINX, get the [licensing-instance-nginx.yaml](./licensing-instance-nginx.yaml) file and run the command:
64+
### Patch the IBM Licensing instance with Nginx configuration
65+
66+
Get the [licensing-instance-nginx.yaml](./licensing-instance-nginx.yaml) file and run the command:
6567
6668
```bash
67-
kubectl create -f licensing-instance-nginx.yaml
69+
kubectl patch IBMLicensing instance --type merge --patch-file licensing-instance-nginx.yaml -n ibm-licensing
70+
```
71+
72+
Wait a couple of minutes for the changes to be applied.
73+
74+
Run the following command to see the status of Ingress instance:
75+
76+
```bash
77+
kubectl get ingress -n ibm-licensing
78+
```
79+
80+
You should be able to see the address and other details about `ibm-licensing-service-instance`.
81+
```
82+
NAME CLASS HOSTS ADDRESS PORTS AGE
83+
ibm-licensing-service-instance nginx * abcdefghijklmnopqrstuvqxyz-xxxxxxxyyyyyyzzzzzz.elb.<aws-region>.amazonaws.com 80 11m
6884
```
6985

7086
You will be able to access the IBM License Service by retrieving the URL with this command:
7187

7288
```bash
73-
export LICENSING_URL=$(kubectl get ingress ibm-licensing-service-instance -n ibm-common-services -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')/ibm-licensing-service-instance
74-
export TOKEN=$(kubectl get secret ibm-licensing-token -n ibm-common-services -o jsonpath='{.data.token}' |base64 -d)
89+
export LICENSING_URL=$(kubectl get ingress ibm-licensing-service-instance -n ibm-licensing -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')/ibm-licensing-service-instance
90+
export TOKEN=$(kubectl get secret ibm-licensing-token -n ibm-licensing -o jsonpath='{.data.token}' |base64 -d)
7591
```
7692

7793
You can access the `http://${LICENSING_URL}/status?token=${TOKEN}` URL to view the licensing usage.

platform/eks/licensing-instance-nginx.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ spec:
88
httpsEnable: false
99
ingressEnabled: true
1010
ingressOptions:
11+
ingressClassName: nginx
1112
annotations:
12-
kubernetes.io/ingress.class: nginx
1313
nginx.ingress.kubernetes.io/rewrite-target: '/$2'
14-
path: /ibm-licensing-service-instance(/|$)(.*)
15-
instanceNamespace: ibm-common-services
14+
path: /ibm-licensing-service-instance(/|$)(.*)

0 commit comments

Comments
 (0)