Compare commits

...

7 Commits

Author SHA1 Message Date
khwezi f62ac1bc71 Merge pull request 'Populated README' (#11) from migration into master
Reviewed-on: #11
2026-05-10 09:49:10 +02:00
Khwezi Mngoma 544eef0e49 Populated README
continuous-integration/drone/pr Build is passing
2026-05-10 09:47:42 +02:00
khwezi a7b9e945a3 Merge pull request 'Added host entry to my gitea instance to git tag and release commands' (#10) from migration into master
Reviewed-on: #10
2026-05-10 08:54:39 +02:00
Khwezi Mngoma 4a20c5ea5f Added host entry to my gitea instance to git tag and release commands
continuous-integration/drone/pr Build is passing
2026-05-10 08:54:14 +02:00
khwezi 6f5892c228 Merge pull request 'migration' (#9) from migration into master
Reviewed-on: #9
2026-05-10 08:47:01 +02:00
Khwezi Mngoma 23d992704e Removed image specification on uat deploy
continuous-integration/drone/pr Build is failing
2026-05-10 08:46:40 +02:00
Khwezi Mngoma 581cd2084a Added step to install curl on tag and release step 2026-05-10 08:45:54 +02:00
2 changed files with 20 additions and 3 deletions
+2 -2
View File
@@ -45,6 +45,8 @@ steps:
GITEA_USER: { from_secret: git_username }
GITEA_PASS: { from_secret: git_password }
commands:
- echo "169.255.58.144 gitea.khongisa.co.za" >> /etc/hosts
- apk add --no-cache curl
- git remote set-url origin https://$${GITEA_USER}:$${GITEA_PASS}@gitea.khongisa.co.za/litecharms/scheduler.git
- git tag 1.${DRONE_BUILD_NUMBER}
- git push origin 1.${DRONE_BUILD_NUMBER}
@@ -81,7 +83,6 @@ steps:
- mkdir -p $HOME/.kube
- echo "$KUBE_CONFIG" > $HOME/.kube/config
- kubectl apply -f litecharms-scheduler-uat.yml
- kubectl set image statefulset/litecharms-scheduler-uat scheduler=nexus.khongisa.co.za/litecharms-scheduler:1.${DRONE_BUILD_NUMBER} -n litecharms-scheduler-uat
depends_on:
- package
@@ -104,7 +105,6 @@ steps:
- echo "$KUBE_CONFIG" > $HOME/.kube/config
- kubectl apply -f litecharms-scheduler.yml
- kubectl rollout restart statefulset/litecharms-scheduler -n litecharms-scheduler
- kubectl set image statefulset/litecharms-scheduler scheduler=nexus.khongisa.co.za/litecharms-scheduler:1.${DRONE_BUILD_NUMBER} -n litecharms-scheduler
depends_on:
- uat
+18 -1
View File
@@ -1 +1,18 @@
# LiteCharms
# LiteCharms.Scheduler
The background processing engine responsible for automated tasks and scheduled jobs.
## 🏗 Architecture
* **Type:** Kubernetes **StatefulSet**
* **Persistence:** Uses Postgres at `192.168.1.170`.
* **Clustering:** Configured for Quartz.NET/Hangfire clustering to support multiple replicas without task duplication.
## 🚀 CI/CD Workflow
* **Trigger:** Pull Request to `master`.
* **Versioning:** Automated Gitea Releases with links to Docker and NuGet artifacts.
* **Identity:** Uses stable network identifiers (`litecharms-scheduler-0`, etc.) to maintain lock integrity in the database.
## ⚙️ Scaling
To scale the scheduler:
`kubectl scale statefulset litecharms-scheduler --replicas=3`
*Note: Ensure Database Job Store is enabled in appsettings before scaling.*