Files
cloudy/keytong/whoami-deployment.yaml
T
furyhawk 4549a213e2 Add Traefik and various service configurations for Docker Swarm
- Created `local_core.yml` for Traefik service configuration with multiple entry points and middleware settings.
- Added `services-all.yml` to define multiple services including API server, PostgreSQL, MinIO, Neo4j, and others with Traefik routing.
- Implemented Kubernetes deployment files for API server, Dozzle, MinIO, OSRM backend, PostgreSQL, SearxNG, and Whoami services.
- Configured persistent volume claims for MinIO, PostgreSQL, and SearxNG.
- Set up Traefik routing rules for all services to enable HTTPS and middleware for security.
2026-03-25 10:15:04 +08:00

35 lines
989 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f services.yml
kompose.version: 1.34.0 (HEAD)
labels:
io.kompose.service: whoami
traefik.constraint-label: traefik-public
traefik.swarm.network: traefik-public
traefik.enable: "true"
traefik.http.routers.whoami-rtr.entrypoints: https
traefik.http.routers.whoami-rtr.rule: Host(`whoami.`)
traefik.http.routers.whoami-rtr.service: whoami-svc
traefik.http.routers.whoami-rtr.tls.certresolver: le
traefik.http.services.whoami-svc.loadbalancer.server.port: "80"
name: whoami
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: whoami
template:
metadata:
annotations:
kompose.cmd: kompose convert -f services.yml
kompose.version: 1.34.0 (HEAD)
labels:
io.kompose.service: whoami
spec:
containers:
- image: traefik/whoami
name: whoami
restartPolicy: Always