Httpd Deploy in Kubernetes: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 14: Line 14:
Create a local directory that will host the content to be served by httpd.
Create a local directory that will host the content to be served by httpd.
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
mkdir ~/runtime/httpd-local
mkdir ~/runtime/httpd-root
</syntaxhighlight>
</syntaxhighlight>



Revision as of 19:04, 15 December 2019

Internal

Overview

This is a procedure to deploy httpd as a pod in Kubernetes and make it serve content form a local directory, mounted as "hostPath". The procedure was written using Docker Desktop Kubernetes.

Playground

https://github.com/ovidiuf/playground/tree/master/kubernetes/httpd-serving-local-hostPath

Procedure

Local Directory

Create a local directory that will host the content to be served by httpd.

mkdir ~/runtime/httpd-root

Pod and Service Manifest


hostPath