Skip to content

Commit c07ae59

Browse files
authored
Merge pull request #202 from DecisionsDev/eks-review1
Eks review wrt Licensing service 4.9
2 parents 95e83d3 + 907327f commit c07ae59

File tree

4 files changed

+46
-22
lines changed

4 files changed

+46
-22
lines changed

platform/eks/README-NGINX.md

Lines changed: 22 additions & 6 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.
@@ -82,4 +98,4 @@ Otherwise, you can also retrieve the licensing report .zip file by running:
8298
curl "http://${LICENSING_URL}/snapshot?token=${TOKEN}" --output report.zip
8399
```
84100

85-
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).
101+
If your IBM License Service instance is not running properly, refer to this [troubleshooting page](https://www.ibm.com/docs/en/cloud-paks/foundational-services/4.9?topic=service-troubleshooting-license).

platform/eks/README.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -290,31 +290,41 @@ The ODM services are accessible from the following URLs:
290290

291291
#### a. Install the IBM License Service
292292

293-
Follow the **Installation** section of the [Manual installation without the Operator Lifecycle Manager (OLM)](https://www.ibm.com/docs/en/cpfs?topic=software-manual-installation-without-operator-lifecycle-manager-olm) documentation.
293+
Follow the **Installation** section of the [Installation License Service without Operator Lifecycle Manager (OLM)](https://www.ibm.com/docs/en/cloud-paks/foundational-services/4.9?topic=ils-installing-license-service-without-operator-lifecycle-manager-olm) documentation.
294294

295-
> **Warning**
296-
> Make sure you do not follow the **Creating an IBM Licensing instance** part!
297-
298-
#### b. Create the IBM Licensing instance
295+
#### b. Patch the IBM Licensing instance
299296

300297
Get the [licensing-instance.yaml](./licensing-instance.yaml) file and run the command:
301298

302299
```bash
303-
kubectl create -f licensing-instance.yaml
300+
kubectl patch IBMLicensing instance --type merge --patch-file licensing-instance.yaml -n ibm-licensing
304301
```
305302

306-
You can find more information and use cases on [this page](https://www.ibm.com/docs/en/cpfs?topic=software-configuration).
303+
Wait a couple of minutes for the changes to be applied.
304+
305+
Run the following command to see the status of Ingress instance:
306+
307+
```bash
308+
kubectl get ingress -n ibm-licensing
309+
```
310+
311+
You should be able to see the address and other details about `ibm-licensing-service-instance`.
312+
```
313+
NAME CLASS HOSTS ADDRESS PORTS AGE
314+
ibm-licensing-service-instance alb * k8s-ibmlicen-ibmlicen-xxxxxxxx-yyyyyyy.<aws-region>.elb.amazonaws.com 80 44m
315+
```
316+
You can find more information and use cases on [this page](https://www.ibm.com/docs/en/cloud-paks/foundational-services/4.9?topic=configuration-configuring-kubernetes-ingress).
307317

308318
> **Note**
309319
> If you choose to use the NGINX Ingress Controller, you must use the [licensing-instance-nginx.yaml](./licensing-instance-nginx.yaml) file. Refer to [Track ODM usage with the IBM License Service with NGINX Ingress Controller](README-NGINX.md#track-odm-usage-with-the-ibm-license-service-with-nginx-ingress-controller).
310320
311321
#### c. Retrieving license usage
312322

313-
After a couple of minutes, the ALB reflects the Ingress configuration. You will be able to access the IBM License Service by retrieving the URL with this command:
323+
The ALB address should be reflected in the Ingress configuration. You will be able to access the IBM License Service by retrieving the URL with this command:
314324

315325
```bash
316-
export LICENSING_URL=$(kubectl get ingress ibm-licensing-service-instance -n ibm-common-services -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
317-
export TOKEN=$(kubectl get secret ibm-licensing-token -n ibm-common-services -o jsonpath='{.data.token}' |base64 -d)
326+
export LICENSING_URL=$(kubectl get ingress ibm-licensing-service-instance -n ibm-licensing -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
327+
export TOKEN=$(kubectl get secret ibm-licensing-token -n ibm-licensing -o jsonpath='{.data.token}' |base64 -d)
318328
```
319329

320330
> **Note**

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(/|$)(.*)

platform/eks/licensing-instance.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ spec:
88
httpsEnable: false
99
ingressEnabled: true
1010
ingressOptions:
11+
ingressClassName: alb
1112
annotations:
1213
alb.ingress.kubernetes.io/scheme: internet-facing
1314
alb.ingress.kubernetes.io/target-type: ip
14-
kubernetes.io/ingress.class: alb
15-
path: /*
16-
instanceNamespace: ibm-common-services
15+
path: /*

0 commit comments

Comments
 (0)