26 lines
711 B
YAML
26 lines
711 B
YAML
# 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
|