Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started