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 May 12, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ You will also need to install the [APB application](https://github.com/fusor/ans
12
12
13
13
Finally, you will need to build an OpenShift NGINX Plus image. A Dockerfile to build the image can be found in the `dev` folder. You will need to copy your certs into the `certs` folder for the Docker image to work.
14
14
15
-
## How to Use
15
+
## How to Install the NGINX Plus Service
16
16
17
17
1. Login to your `oc` cluster via the command that [catasb](https://github.com/fusor/catasb) will output at the end of the installation process.
18
18
2. Clone this repository.
@@ -22,11 +22,34 @@ Finally, you will need to build an OpenShift NGINX Plus image. A Dockerfile to b
22
22
6. Select the NGINX service, add it to `My Project`, select `Create` and click `View Project`.
23
23
7. After waiting for a few seconds you should see a URL pop in the top-right corner of the console. That URL will take you to the default NGINX landing page. Alternatively you can select `Applications/Pods` via the left-side navbar and select the NGINX pod. From here you'll be able to use a terminal to manipulate NGINX.
24
24
25
+
## Sample Tutorial Walkthrough
26
+
27
+
### Option 1
28
+
29
+
1. Follow steps 1-5 listed in the **How to Install the NGINX Plus Service**.
30
+
2. Deploy Python and PHP web servers by clicking each of the respective icons in the service catalog. For each service, select the `try sample repository` option, click `create` and finally `view project`. Wait for a few minutes until the deployment has completed.
31
+
3. Once the deployment has finished, for each service select the drop-down arrow and click the link under the service header. You will be able to see the internal IP of the pod from here. Store the internal IP of both pods (note: while not explicitly specified all default pods are open at port 8080 instead of the normal default port 80 due to security reasons).
32
+
4. Select the NGINX service. You will be able to edit a few NGINX configuration options. Select `Enable Proxy Servers` and input the internal IPs of the Python and PHP services as a comma separated list in the `Proxy Servers` textfield. You can also select `Enable Status Dashboard` if you want to see the NGINX Plus live status dashboard. Once you are done add the service to `My Project`, select `Create` and click `View Project`.
33
+
4. Click the drop-down arrow for the NGINX Plus service. You will see two routes have been created. Cliking the route with `web` will take you to the NGINX Load Balancer. Clicking the route with `status` will take you to the NGINX live status dashboard.
34
+
35
+
### Option 2
36
+
37
+
1. Follow the steps listed in the **How to Install the NGINX Plus Service** section.
38
+
2. Deploy Python and PHP web servers by clicking each of the respective icons in the service catalog. For each service, select the ‘try sample repository’ option, click `create` and finally `view project`. Wait for a few minutes until the deployment has completed.
39
+
3. Once the deployment has finished, for each service select the drop-down arrow and click the link under the service header. You will be able to see the internal IP of the pod from here. Store the internal IP of both pods (note: while not explicitly specified all default pods are open at port 8080 instead of the normal default port 80 due to security reasons).
40
+
4. Navigate to the terminal of your NGINX instance and edit your default.conf file. Add a proxy_pass directive and an upstream group with two server directives pointing to the internal IPs you previously wrote down (remember to add :8080). Save your changes and type `nginx -s reload`. Click the same URL as in step 7 of the `How to Install the NGINX Plus Service` section. Voila! You have a functional NGINX Load Balancer!
41
+
25
42
## Parameters
26
43
27
44
Name | Default Value | Required | Description
28
45
---|---|---|---
29
46
nginx_plus_image | openshift-nginx-plus | Yes | Name of NGINX Plus Docker image
47
+
lb | false | No | Enable Proxy Servers
48
+
server | | No | Proxy Servers (Input as a Comma Separated List)
49
+
lb_method | round_robin | No | Load Balancing Algorithm
50
+
session_persistence | false | No | Enable Session Persistence
0 commit comments