Commit Graph

16 Commits

Author SHA1 Message Date
c997b1dc37 chore: update image version and ingress settings
- Bump image version for `chatgpt-web-midjourney-proxy` from 2.22.7 to
  2.23.8.
- Add annotations for NGINX ingress to configure proxy body size,
  read timeout, and send timeout.

These changes enhance the deployment of the application by ensuring
that it uses the latest image version and improves the handling of
larger requests and longer processing time through appropriate NGINX
configuration.
2025-04-21 15:46:36 +08:00
65808726e5 feat: update nginx ingress settings
- Enable hostPort for controller
- Disable external controller service
- Add new configuration options for Nginx controller with
  allow-snippet-annotations and real-ip handling settings

These changes improve the networking configuration of the Nginx
Ingress controller, enabling better handling of forwarded IP
addresses and ensuring the correct annotations are applied.
It also modifies service accessibility to better fit internal
deployments.
2025-04-21 15:46:05 +08:00
27150fa91c fix: update pg hostname and PVC claim names
- Change hostname from vkvm-us1 to zgocloud-us1
- Update persistent volume claim name from pg-data-local-vkus1-pvc to pg-data-local-zgus1-pvc
- Modify storage class name to local-zgus1

These updates ensure that the PostgreSQL deployment references the correct
Kubernetes node and persistent volume, aligning with the current
infrastructure and deployment strategy.
2025-04-20 16:42:49 +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
f8e0654b8f feat: add local-storage-class configuration
- Introduce a new StorageClass named `local-data`
- Set provisioner to `rancher.io/local-path`
- Define parameters including `nodePath` and `pathPattern`
- Modify existing StorageClass from `local-data` to `local-zgus1` and include `nodeSelector`

This commit sets up a local storage class to be used within the Kubernetes environment, enabling better management of local volumes.
The new configuration allows for efficient volume binding based on specific node requirements.
2025-04-20 11:09:04 +08:00
db69791a4d feat: add tolerations for container scheduling
- Include tolerations in load.yaml for scheduling
- Allow pods to tolerate specific constraints and improve scheduling

This change enables the containers to schedule on nodes with
restricted taints, enhancing deployment strategies in constrained
Kubernetes environments.
2025-04-19 19:31:10 +08:00
6137c63185 style: fix spacing in OPENAI_API_MODEL value
- Remove leading space in the OPENAI_API_MODEL value
- Ensure consistency in YAML formatting

This change corrects the spacing in the OPENAI_API_MODEL
configuration to maintain consistency in the YAML file, which helps
prevent potential issues during processing.
2025-04-19 12:36:06 +08:00
00e8d68592 chore: update OPENAI_API_MODEL in load.yaml
- Change model value from 'o1-mini-2024-09-12' to 'o3-mini'.

This update modifies the model used in the application configuration, which may lead to different behavior or performance improvements depending on the capabilities of the new model.
2025-04-19 12:32:50 +08:00
1bb7382b29 chore: update OPENAI_API_MODEL value in load.yaml
- Change value of OPENAI_API_MODEL from "o1-mini" to "o1-mini-2024-09-12"

This change updates the model version used in the configuration,
ensuring compatibility with the latest API requirements. The
previous model version will no longer receive updates or support, so
updating this configuration is necessary for continued functionality.
2025-04-19 12:27:58 +08:00
33832c5761 feat: add deployment, service, and ingress for app3
- Create deployment configuration for app3 with 5 replicas.
- Add service to expose app3 on port 3002.
- Define ingress resource for handling external traffic to app3.
- Set up TLS and host configuration for secure traffic.

This commit introduces the necessary Kubernetes manifests for the new
app3 which allows for deployment, service exposure, and ingress
routing, thereby enabling it to be accessed securely over the
specified domain. The deployment includes node affinity rules to
restrict execution environments and enhances the overall service
availability.
2025-04-19 12:25:57 +08:00
48164c12da feat: update nginx-ingress configuration
- Add tolerations for restricted scheduling
- Set externalTrafficPolicy to 'Local'

These updates enhance the deployment configuration of the nginx-ingress.
They allow better scheduling of pods on nodes with specific taints and
facilitate the preservation of the client source IP for external
traffic.
2025-04-18 16:33:10 +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
9f3879c25b fix: update ingress configuration for Avatar.jpg
- Modify ingress configuration to redirect requests for /Avatar.jpg
  to a specific URL.
- Ensure that the redirection includes query parameters.
- Comment out the old rewrite rule for clarity.

This update addresses the routing for Avatar.jpg, ensuring that
requests are properly directed to the desired image location,
improving accessibility for users.
2025-04-15 14:35:55 +08:00
1eca4d3fd1 chore: update ingress configurations
- Enable snippet annotations for nginx ingress controller
- Comment out a previous configuration snippet that redirects JPG files

This update allows the use of snippet annotations, giving more control
over ingress configurations. The previously commented snippet
suggested a redirect for JPG files but is now ignored to simplify
configuration and focus on the current requirements.
2025-04-15 11:58:33 +08:00
3cc13338d3 chore: update prometheus metrics retention period
- Change retention period from 5 days to 3 days

This adjustment may help free up storage resources more
quickly, ensuring that older metrics are purged sooner,
leading to better performance and lower storage costs.
2025-04-12 13:24:37 +08:00
2bb098c6e3 first commit 2025-04-12 13:11:34 +08:00