Question: your application team has deployed on Kubernetes a simple app which generates a static page with resources and writes it to a mounted volume. The
your application team has deployed on Kubernetes a simple app which generates a static page with resources and writes it to a mounted volume. The application generates the following files and directories on the mounted drive :
index.html file specifying the static page
css directory containing stylesheet assets;
img directory containing images served on the page
The application runs on Kubernets as a Pod and mounts a persistent volume named webpage
The application team has asked you to deploy the Pod, which will mount the persistent volume and serve the page
Task :
Write a Kubernetes Pod defintiion according to the expectations listed below:
The pod has the name webpageserver
the pod runs a single container called nginx which uses the image nginx:
The container exposes port ;
The container mounts the webpage persistent volume on the path varwwwhtml;
The volume is mounted in readonly mode.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
