Answered step by step
Verified Expert Solution
Link Copied!

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:
1. The pod has the name webpage-server
2. the pod runs a single container called nginx which uses the image nginx:1.15
3. The container exposes port 80;
4. The container mounts the webpage persistent volume on the path /var/www/html;
5. The volume is mounted in read-only mode.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago

Question

=+ What typical employee will the IA compare him/

Answered: 1 week ago

Question

=+7 What is the overall cost of the international assignment?

Answered: 1 week ago