Created
July 23, 2024 09:12
-
-
Save rpstreef/b2868639e2ab65f3d5f2dc37c2973b0e to your computer and use it in GitHub Desktop.
DevSpace local Kubernetes development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: v2beta1 | |
| name: insight-prose | |
| images: | |
| insight-prose-api: | |
| image: localhost:5000/insight-prose-api | |
| dockerfile: ./Dockerfile | |
| context: . | |
| target: development | |
| skipPush: false | |
| # This is required to avoid double tagging issue: e.g. latest:latest | |
| # https://github.com/devspace-sh/devspace/issues/2809 | |
| deployments: | |
| insight-prose: | |
| updateImageTags: false | |
| helm: | |
| chart: | |
| path: ./kubernetes/helm-charts/insight-prose | |
| valuesFiles: | |
| - ./kubernetes/helm-charts/insight-prose/values.yaml | |
| values: | |
| api: | |
| image: | |
| repository: ${runtime.images.insight-prose-api.image} | |
| tag: ${runtime.images.insight-prose-api.tag} | |
| dev: | |
| insight-prose: | |
| labelSelector: | |
| app.kubernetes.io/name: insight-prose | |
| namespace: insight-prose | |
| container: insight-prose | |
| sync: | |
| - path: ./app:/app/app | |
| - path: ./alembic.ini:/app/alembic.ini | |
| - path: ./alembic:/app/alembic | |
| ports: | |
| - port: 8000 | |
| command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] | |
| hooks: | |
| - name: deploy-dependencies | |
| command: | | |
| # Add your dependency deployments here | |
| events: ["before:deploy"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment