apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization # `make kind` builds and loads the dev images, then applies this overlay. There is no ingress in # kind: port-forward svc/web to 8080 and svc/api to 8000 (the UI calls the API directly). namespace: rarelens # generated Secret/ConfigMap names only propagate within one namespace resources: [../../base, postgres.yaml] images: - { name: rarelens/api, newName: rarelens-api, newTag: dev } - { name: rarelens/web, newName: rarelens-web, newTag: dev } secretGenerator: - name: api-secrets literals: [DATABASE_URL=postgresql+asyncpg://rarelens:rarelens@postgres:5432/rarelens] configMapGenerator: - name: api-config literals: ['CORS_ORIGINS=["http://localhost:8080"]'] patches: - patch: | apiVersion: apps/v1 kind: Deployment metadata: { name: web } spec: template: spec: containers: - name: web env: [{ name: PUBLIC_API_URL, value: "http://localhost:8000/api" }]