Basic Nginx lab
This commit is contained in:
parent
7ed4bb9b77
commit
37a414f8b6
1 changed files with 18 additions and 0 deletions
18
01_nginx/README.md
Normal file
18
01_nginx/README.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Nginx lab
|
||||
|
||||
## Spawn a standalone Nginx instance
|
||||
|
||||
* Create a Namespace.
|
||||
* Deploy the `nginx:stable` image, using a `deployment` of one replica and exposing the port `80`.
|
||||
* Try to connect to it using port forwarding from the hosting node.
|
||||
|
||||
## Create a service to expose Nginx
|
||||
|
||||
* Expose the Nginx server, with a service to facilite access to it.
|
||||
|
||||
## Expose a static webpage with Nginx
|
||||
|
||||
* Create a basic HTML file with the content of your choice
|
||||
* Create a `configmap` with the html file
|
||||
* Modify the nginx deployment to mount the configmap into `/usr/share/nginx/html`
|
||||
* Confirm the webpage is now available
|
Loading…
Reference in a new issue