Add whoami as a second real app (docs/08 hands-on exercise)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# A tiny HTTP server that echoes back request details (headers, hostname,
|
||||
# IP) — useful as a second, real, end-to-end proof of the app-of-apps
|
||||
# pattern from docs/08-adding-new-apps.md: no storage, no privileged
|
||||
# access, just a Deployment and a Service like apps/demo/, but a completely
|
||||
# separate app added the normal way (drop files in apps/, commit, push).
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: whoami
|
||||
namespace: whoami
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: whoami
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: whoami
|
||||
spec:
|
||||
containers:
|
||||
- name: whoami
|
||||
image: traefik/whoami:v1.10
|
||||
ports:
|
||||
- containerPort: 80
|
||||
Reference in New Issue
Block a user