apiVersion: v1
kind: Namespace
metadata:
name: testsite
---
apiVersion: v1
kind: ConfigMap
metadata:
name: webdir
namespace: testsite
data:
index.html: |
Blank page
Nothing here to see.
---
apiVersion: v1
kind: Pod
metadata:
name: static-nginx
namespace: testsite
labels:
app: web-backend
spec:
containers:
- name: webserver
image: nginx:alpine
volumeMounts:
- name: webdir
mountPath: /usr/share/nginx/html
volumes:
- name: webdir
configMap:
name: webdir