You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
- Modify the ConfigMap manifest to match your Network environment. Change the `nginx-hosts` IP address to match your NGINX LB Server IP. If you have 2 or more LB Servers, separate them with a comma. Important! - keep the port number for the Plus API endpoint, and the `/api` URL as shown.
549
+
- Modify the ConfigMap manifest to match your NGINX LB Server(s). Change the `nginx-hosts` IP address to match your NGINX LB Server IP. If you have 2 or more LB Servers, separate them with a comma. Important! - keep the port number for the Plus API endpoint, and the `/api` URL as shown.
- The Cafe Demo Docker image used is an upgraded one, with simple graphics and additional Request and Response variables added.
110
+
- The Cafe Demo Docker image used here is an upgraded one, with simple graphics and additional TCP/IP and HTTP variables added.
111
111
112
112
https://hub.docker.com/r/nginxinc/ingress-demo
113
113
114
114
**IMPORTANT** - Do not use the `cafe-ingress.yaml` file. Rather, use the `cafe-virtualserver.yaml` file that is provided here. It uses the NGINX Plus CRDs to define a VirtualServer, and the related Virtual Server Routes needed. If you are using NGINX OSS Ingress Controller, you will need to use the appropriate manifests, which is not covered in this Solution.
- dashboard.conf | NGINX Plus API and Dashboard config
159
159
- default-tcp.conf | New default.conf config
160
-
- grafana-dashboard.json | NGINX Plus Grafana dashboard
161
160
- nginx.conf | New nginx.conf
162
-
- loadbalancer-nkl.yaml | LoadBalancer manifest for Cluster1
163
-
- nodeport-nkl.yaml | NodePort manifest for Cluster1
161
+
- loadbalancer-nkl.yaml | LoadBalancer manifest
162
+
- nodeport-nkl.yaml | NodePort manifest
164
163
165
164
>/etc/nginx/stream
166
165
@@ -206,7 +205,7 @@ server {
206
205
```
207
206
208
207
- Enable the NGINX Plus dashboard. Use the `dashboard.conf` file provided. It will enable the /api endpoint, change the port to 9000, and provide access to the Plus Dashboard. Note: There is no security for the /api endpoint in this example config, it should be secured as approprite with TLS or IP allow list.
209
-
- Place this file in the /etc/nginx/conf.d folder, and reload nginx. The Plus dashboard is now accessible at http://nginx-lb-server-ip:9000/dashboard.html. It should look similar to this:
208
+
- Place this file in the /etc/nginx/conf.d folder, and reload nginx. The Plus dashboard is now accessible at http://<nginx-lbserver-ip>:9000/dashboard.html. It should look similar to this:
Modify the ConfigMap manifest to match your Network environment. Change the `nginx-hosts` IP address to match your NGINX LB Server IP. If you have 2 or more LB Servers, separate them with a comma. Keep the port number for the Plus API endpoint, and the `/api` URL as shown.
357
+
Modify the ConfigMap manifest to match your NGINX LB Server(s). Change the `nginx-hosts` IP address to match your NGINX LB Server IP. If you have 2 or more LB Servers, separate them with a comma. Keep the port number for the Plus API endpoint, and the `/api` URL as shown.
359
358
360
359
```yaml
361
360
@@ -382,7 +381,7 @@ Deploy the NKL Controller:
382
381
kubectl apply -f nkl-deployment.yaml
383
382
```
384
383
385
-
Check to see if the NKL Controller is running with the updated ConfigMap:
384
+
Check to see if the NKL Controller is running, with the updated ConfigMap:
386
385
387
386
```bash
388
387
kubectl get pods -n nkl
@@ -395,13 +394,13 @@ The status should show "running", your `nginx-hosts` should have the LB Server I
395
394
396
395

397
396
398
-
To make it easy to watch the NKL controller log messages, add the following bash alias:
397
+
To make it easy to watch the NKL Controller's log messages, add the following bash alias:
Using a Terminal, you can watch the NKL Controller log:
405
404
406
405
```bash
407
406
nkl-follow-logs
@@ -552,8 +551,8 @@ When you are finished, the NGINX Plus Dashboard on the LB Server should look sim
552
551
553
552
Important items for reference:
554
553
- Orange are the upstream server blocks, from the `etc/nginx/stream/nginxk8slb.conf` file.
555
-
- Blue is the IP:Port of the NodePort Service for http.
556
-
- Indigo is the IP:Port of the NodePort Service for https.
554
+
- Blue is the IP:Port of the nginx-ingress Service for http.
555
+
- Indigo is the IP:Port of the nginx-ingress Service for https.
557
556
558
557
>Note: In this example, there is a 3-Node K8s cluster, with one Control Node, and 2 Worker Nodes. The NKL Controller only configures `Worker Node` IP addresses, which are:
559
558
- 10.1.1.8
@@ -584,7 +583,7 @@ or
584
583
kubectl delete -f nodeport-nkl.yaml
585
584
```
586
585
587
-
Now the `nginx-ingress` Service is gone, and the upstream list will be empty in the Dashboard.
586
+
Now the `nginx-ingress` Service is gone, and the upstream lists will be empty in the Dashboard.
588
587
589
588

590
589
@@ -606,7 +605,7 @@ or
606
605
kubectl apply -f nodeport-nkl.yaml
607
606
```
608
607
609
-
- Verify the nginx-ingress Service is re-created. Notice the the Port Numbers have changed!
608
+
- Verify the nginx-ingress Service is re-created. Notice the the NodePort Numbers have changed!
0 commit comments