Created
July 3, 2021 05:22
-
-
Save protosam/a34b011f3300f331e275bcc955bfb6cf to your computer and use it in GitHub Desktop.
This file contains 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: v1beta10 | |
vars: | |
- name: REGISTRY_PASSWORD | |
password: true | |
- name: IMAGE | |
value: kube-makefile # Update this after deciding where the image will be | |
pullSecrets: | |
- registry: "null" # Update this after deciding where the image will be | |
username: ${REGISTRY_USERNAME} | |
password: ${REGISTRY_PASSWORD} | |
# consumed by | |
images: | |
app: | |
image: ${IMAGE} | |
injectRestartHelper: true | |
# How to deploy project can use any combo of helm/kubectl/kustomize | |
deployments: | |
- name: kube-makefile | |
kubectl: | |
manifests: | |
- manifests/deploy.yaml | |
# conf for `devspace dev` | |
dev: | |
autoReload: | |
paths: | |
- ./Dockerfile | |
images: | |
- app | |
# ports to run `port-forward` against pods | |
ports: | |
- imageSelector: ${IMAGE} # Select the Pod that runs our `${IMAGE}` | |
forward: | |
- port: 8000 | |
remotePort: 80 | |
# if we want to auto-open URLs when they are available | |
#open: | |
#- url: http://localhost:8000 | |
# configuration for syncing files | |
sync: | |
- imageSelector: ${IMAGE} # Select the Pod that runs our `${IMAGE}` | |
localSubPath: ./src | |
excludePaths: | |
- .git/ | |
onUpload: | |
restartContainer: true | |
# `dev.terminal` tells DevSpace to open a terminal as a last step during `devspace dev` | |
terminal: | |
imageSelector: ${IMAGE} # Select the Pod that runs our `${IMAGE}` | |
command: | |
- bash | |
# `profiles` for different envs (dev/prod/etc) | |
profiles: | |
# defines what happens when running `devspace deploy -p production` | |
- name: production | |
merge: | |
images: | |
app: | |
image: ${IMAGE} # Use the value of our `${IMAGE}` variable here (see vars above) | |
dockerfile: ./Dockerfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment