Sales Portal
Let's see how to deploy Sales Portal on a Kubernetes cluster.
Repository
Make sure to have the devpro Helm repository:
bash
helm repo add devpro https://devpro.github.io/helm-charts
helm repo updateConfiguration
Create the values.yaml file to override default parameters.
yaml
dotnet:
environment: Development
enableSwagger: true
enableOpenTelemetry: trueyaml
mongodb:
enabled: true
auth:
rootPassword: admin
data:
db:
connectionString: mongodb://root:admin@sales-portal-mongodb:27017/sales-portal?authSource=admin
databaseName: sales-portalyaml
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
front:
host: sales-portal.my.domain
adapter:
host: crm-adapter.my.domain
data:
host: crm-data.my.domainDeployment
Install the application:
bash
helm upgrade --install sales-portal devpro/sales-portal -f values.yaml -namespace sales-portal --create-namespaceOptional checks
If enabled, open the Swagger page from the browser (<url>/swagger).
Forward MongoDB port for local access:
bash
kubectl port-forward service/sales-portal-mongodb 27017:27017 -n sales-portalUse MongoDB Compass to look at the database.
Clean-up
Uninstall the application and delete the namespace:
bash
helm delete sales-portal -n sales-portal
kubectl delete ns sales-portal