apiVersion: apps/v1 kind: Deployment metadata: { name: web } spec: replicas: 2 selector: { matchLabels: { app: web } } template: metadata: { labels: { app: web } } spec: containers: - name: web image: rarelens/web ports: [{ containerPort: 3000 }] env: [{ name: PUBLIC_API_URL, value: /api }] resources: { requests: { cpu: 100m, memory: 128Mi }, limits: { cpu: 500m, memory: 256Mi } } --- apiVersion: v1 kind: Service metadata: { name: web } spec: { selector: { app: web }, ports: [{ port: 80, targetPort: 3000 }] }