Skip to content

Commit 4307eaf

Browse files
Merge pull request #610 from microsoft/dev
fix: merging dev to main
2 parents c05cdc5 + eddd852 commit 4307eaf

4 files changed

Lines changed: 330 additions & 63 deletions

File tree

Deployment/kubernetes/deploy.deployment.yaml.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
containers:
2525
- name: aiservice
2626
image: {{ aiservice-imagepath }}
27+
imagePullPolicy: Always
2728
ports:
2829
- containerPort: 8080
2930
resources:
@@ -52,6 +53,7 @@ spec:
5253
containers:
5354
- name: kernelmemory
5455
image: {{ kernelmemory-imagepath }}
56+
imagePullPolicy: Always
5557
ports:
5658
- containerPort: 8080
5759
resources:
@@ -80,6 +82,7 @@ spec:
8082
containers:
8183
- name: frontapp
8284
image: {{ frontapp-imagepath }}
85+
imagePullPolicy: Always
8386
ports:
8487
- containerPort: 5900
8588
resources:

Deployment/resourcedeployment.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,11 @@ try {
997997
# 5.3. Deploy Deployment in Kubernetes
998998
kubectl apply -f "./kubernetes/deploy.deployment.yaml" -n $kubenamespace
999999

1000+
# 5.3.1. Restart deployments to pick up new container images
1001+
kubectl rollout restart deployment/aiservice-deployment -n $kubenamespace
1002+
kubectl rollout restart deployment/kernelmemory-deployment -n $kubenamespace
1003+
kubectl rollout restart deployment/frontapp-deployment -n $kubenamespace
1004+
10001005
# 5.4. Deploy Services in Kubernetes
10011006
kubectl apply -f "./kubernetes/deploy.service.yaml" -n $kubenamespace
10021007

docs/DeploymentGuide.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,3 +463,42 @@ Now that your deployment is complete and tested, explore these resources to enha
463463
- 🐛 **Issues:** Check [Troubleshooting Guide](./TroubleShootingSteps.md)
464464
- 💬 **Support:** Review [Support Guidelines](../SUPPORT.md)
465465
- 🔧 **Development:** See [Contributing Guide](../CONTRIBUTING.md)
466+
467+
## Advanced: Deploy Local Changes
468+
469+
If you have made local code changes (e.g., UI updates, backend modifications) and want to deploy them to your existing Azure environment, follow these steps. This process rebuilds the container images from your local source code and redeploys them to the Kubernetes cluster.
470+
471+
### Prerequisites
472+
473+
- An existing deployment completed via [Step 4](#step-4-deploy-the-solution) and [Step 5](#step-5-post-deployment-configuration)
474+
- **Docker Desktop** must be running on your machine
475+
- **PowerShell 7.0+** installed
476+
477+
### Steps
478+
479+
1. **Ensure Docker Desktop is running** — The script builds container images locally, so Docker must be active before proceeding.
480+
481+
2. **Open PowerShell and navigate to the Deployment folder:**
482+
```shell
483+
cd .\Deployment\
484+
```
485+
486+
3. **Run the deployment script:**
487+
488+
```shell
489+
.\resourcedeployment.ps1
490+
```
491+
492+
**If you deployed using custom templates or `az deployment group` commands:**
493+
```shell
494+
.\resourcedeployment.ps1 -ResourceGroupName "<your-resource-group-name>"
495+
```
496+
497+
4. **Wait for the script to complete** — The script will:
498+
- Build new Docker images from your local code
499+
- Push the updated images to Azure Container Registry
500+
- Restart the Kubernetes deployments to pull the latest images
501+
502+
5. **Verify your changes** — Access the application URL and confirm your local changes are reflected.
503+
504+
> **⚠️ Note:** The script rebuilds and redeploys **all** container images (frontend, backend, and kernel memory). Expect the process to take approximately 20-30 minutes depending on your network speed.

0 commit comments

Comments
 (0)