Commit Graph

7 Commits

Author SHA1 Message Date
9791f0118f feat: add pod anti-affinity rules for taw app
- Introduce podAntiAffinity settings to avoid scheduling
  multiple Pods with the same app: taw label on the same
  node.
- This is a soft requirement, meaning that if there are
  not enough nodes, Pods may still be scheduled on the
  same node.

This change enhances the deployment strategy by improving
availability and fault tolerance of the taw application.
2025-04-23 20:56:32 +08:00
4f06b0151e fix: increase replicas for load balancing
- Change the number of replicas from 1 to 3 in the
  deployment configuration.
- This adjustment aims to improve load balancing and
  availability of the application.

Increasing the replicas allows the application to handle
more traffic and provides redundancy in case of failures.
2025-04-23 20:53:28 +08:00
50cf9d40e7 fix: correct deployment kind in load.yaml
- Change kind from DaemonSet to Deployment
- Uncomment replicas setting to ensure proper scaling

This change corrects the resource type for the application
in the Kubernetes configuration, ensuring it is deployed as a
Deployment instead of a DaemonSet. This allows for better
management of replicas and scaling capabilities.
2025-04-23 20:53:04 +08:00
06ac637fd8 feat: change deployment to daemonset with scheduling rules
- Change kind from Deployment to DaemonSet
- Remove previous node selector configuration
- Add tolerations for scheduling restrictions
- Introduce node affinity for specific hostnames

These changes facilitate deployment across all nodes instead of a single replica,
allowing for improved resource utilization and management in the
Kubernetes environment.
2025-04-21 16:08:57 +08:00
c4f98c10a1 chore: update storage classes and node selectors
- Change storageClass values from 'local-vkus2' to 'local-zgus1'
- Update nodeSelector hostname from 'vkvm-us2' to 'zgocloud-us1'
- Modify persistent volume claim names to reflect new storage class

These changes aim to facilitate a smooth transition to a new hosting environment, ensuring that the resources are correctly allocated and managed.
2025-04-20 16:36:20 +08:00
d1737824c1 feat: add multiple subdomains for ingress configuration
- Add clhk2.dev.todayaiweather.com to the list of hosts
- Add bwh1.dev.todayaiweather.com to the list of hosts
- Add spus1.dev.todayaiweather.com to the list of hosts

This update allows the application to handle traffic from four
subdomains, providing more flexibility for development and testing.
Each subdomain is routed to the same backend service, ensuring
a consistent experience across these endpoints.
2025-04-17 13:33:49 +08:00
2bb098c6e3 first commit 2025-04-12 13:11:34 +08:00