Skip to main content

Web Server

Link to section 'Nginx Deployment' of 'Web Server' Nginx Deployment

  1. Select your Project from the top right dropdown
  2. Geddes-web-server-4
  3. Using the far left menu so select Workload
  4. Click Create at the top right
  5. Geddes-web-server-5
  6. Select the appropriate Deployment Type for your use case, here we will select and use Deployment
  7. Geddes-web-server-6
  8. Fill out the form
    • Select Namespace
    • Give arbitrary Name
    • Set Container Image to the nginx Docker image: geddes-registry.rcac.purdue.edu/docker-hub-cache/library/nginx
    • Geddes-web-server-7
    • Create a Cluster IP service to point our external accessible ingress to later
      • Click Add Port
      • Click Service Type and with the drop select Cluster IP
      • In the Private Container Port box type 80
      • Geddes-web-server-8
    • Setup Pod Label
      • Select Labels & Annotations on the left side of the current form
      • Select Add Label under the Pod Labels section
      • Give arbitrary unique key and value you can remember later when creating Services and other resources e.g Key: my-web Value: nginx
      • Geddes-web-server-9
        Geddes-web-server-10
    • Click Create

Wait a couple minutes while your application is deployed. The “does not have minimum availability” message is expected. But, waiting more than 5 minutes for your workload to deploy typically indicates a problem. You can check for errors by clicking your workload name (i.e. "mywebserver"), then using the vertical ellipsis on the right hand side of your deployed pod and selecting View Logs

If all goes well, you will see an Active status for your deployment.

Link to section 'Expose the web server to external clients via an Ingress' of 'Web Server' Expose the web server to external clients via an Ingress

  1. Using the far left menu and navigate to Service Discovery > Ingresses and select Create at the top right
  2. Geddes-web-server-1
  3. Fill out the form
    • Ensure to select the namespace where you deployed the nginx
    • Give an arbitrary Name
    • Under Request Host give the url you want for your web application e.g my-nginx.geddes.rcac.purdue.edu
    • Fill in the value Path > Prefix as /
    • Use the Target Service and ;Port dropdowns to select the service you created during the Nginx Deployment section
    • Geddes-web-server-2
    • The default Ingress is private, which is only accessible within Purdue network. To make a public one, change the Ingress Class topublic:
Helpful?

Thanks for letting us know.

Please don't include any personal information in your comment. Maximum character limit is 250.
Characters left: 250
Thanks for your feedback.