Deployment
How do we deploy G1 CRM to production
Introduction
G1 CRM is deployed on Azure Kubernetes Cluster.
Environments
We currently host 3 environments of G1 CRM service.
| Environment | AKS Cluster Name | Namespace |
|---|---|---|
Staging | g1ssostagek8cluster | stage-crm-services |
UAT | g1ssostagek8cluster | uat-crm-services |
Production | g1ssoprodbackendk8 | prod-crm-services |
If you want to access any of the namespaces, make sure you have successfully completed the local development.
info
If you are not able to access the above URLs, please reach out to #ask-platform channel on slack with your access request. Access to a certain environments will be subject to profile and justification.
Staging Environment
Inside your crm-services repository, run the following command to set the staging subscription on Azure.
make stage-aksNow, set your local default namespace to stage-crm-services. And get the list of all pods running.
kubectl ns stage-crm-services
kubectl get podsTo check the log for any pod, you can run the following command
kubectl logs -f pod_name_you_selected_from_last_stepUAT Environment
For the UAT environment, we use the same staging clusters and subscription. Inside your crm-services repository, run the following command to set the uat subscription on Azure.
make stage-aksNow, set your local default namespace to stage-crm-services. And get the list of all pods running.
kubectl ns uat-crm-services
kubectl get podsTo check the log for any pod, you can run the following command
kubectl logs -f pod_name_you_selected_from_last_stepProd Environment
Inside your crm-services repository, run the following command to set the uat subscription on Azure.
make prod-aksNow, set your local default namespace to stage-crm-services. And get the list of all pods running.
kubectl ns prod-crm-services
kubectl get podsTo check the log for any pod, you can run the following command
kubectl logs -f pod_name_you_selected_from_last_stepDeployment
We follow the following deployment matrix for G1 CRM services.
| Branch | Environment | Github Action |
|---|---|---|
develop | staging | |
uat | uat | |
main | production |