feat: Add complete nginx static site example with deployment, service, and documentation

This commit is contained in:
mik-tf
2025-11-04 12:02:02 -05:00
parent 1860fd220d
commit d116c641fe
5 changed files with 379 additions and 5 deletions

View File

@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-static
spec:
replicas: 1
selector:
matchLabels:
app: nginx-static
template:
metadata:
labels:
app: nginx-static
spec:
containers:
- name: nginx-static
image: nginx:alpine
ports:
- containerPort: 80
volumeMounts:
- name: nginx-content
mountPath: /usr/share/nginx/html
volumes:
- name: nginx-content
configMap:
name: nginx-static-content