Deployment to Kubernetes
Prerequisites
Install
kubectl
https://kubernetes.io/docs/tasks/tools/Install
kustomize
https://kubectl.docs.kubernetes.io/installation/kustomize/
Frontend
Staging
You may trigger staging release at any point of time from the master
branch by:
This will update the deployment using ghcr.io/podkrepi-bg/frontend:master
image
Production
Create new release
The following command will:
Bump the version in
package.json
Tag the
latest
master branch[
postversion
] Push local tags to the remote originUpdate the image
newTag
version infrontend/manifests/overlays/production/kustomization.yaml
Commit and push the manifest update
Apply manifests
Once the image has been built by the GitHub Actions and is present in the Docker image repository you may trigger the actual deployment to the cluster.
https://github.com/orgs/podkrepi-bg/packages/container/package/frontend
Backend
Staging
You may trigger staging release at any point of time from the master
branch by:
This will update the deployment using ghcr.io/podkrepi-bg/api:master
image
Production
Create new release
The following command will:
Bump the version in
package.json
Tag the
latest
master branch[
postversion
] Push local tags to the remote originUpdate the image
newTag
version inbackend/manifests/overlays/production/kustomization.yaml
Commit and push the manifest update
Apply manifests
Once the image has been built by the GitHub Actions and is present in the Docker image repository you may trigger the actual deployment to the cluster.
https://github.com/orgs/podkrepi-bg/packages/container/package/api
Manual deployment
If you want to set a specific version for the deployment image you can do that by editing backend/manifests/overlays/production/kustomization.yaml
Last updated