Skip to content

Commit

Permalink
Merge pull request #251 from ropable/master
Browse files Browse the repository at this point in the history
Update gunicorn, add Kustomize HPA resources
  • Loading branch information
ropable authored Apr 24, 2024
2 parents 7cc8f60 + 4cac211 commit ba5bf1a
Show file tree
Hide file tree
Showing 11 changed files with 130 additions and 160 deletions.
1 change: 0 additions & 1 deletion kustomize/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Deployment
metadata:
name: resourcetracking-deployment
spec:
replicas: 2
strategy:
type: RollingUpdate
template:
Expand Down
17 changes: 17 additions & 0 deletions kustomize/base/deployment_hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: resourcetracking-deployment-hpa
spec:
minReplicas: 1
maxReplicas: 3
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
metrics:
- resource:
name: cpu
target:
type: Utilization
averageUtilization: 250
type: Resource
67 changes: 0 additions & 67 deletions kustomize/base/geoserver.yaml

This file was deleted.

1 change: 1 addition & 0 deletions kustomize/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- deployment_hpa.yaml
- service.yaml
- geoserver_statefulset.yaml
- geoserver_headless.yaml
Expand Down
7 changes: 7 additions & 0 deletions kustomize/overlays/prod/deployment_hpa_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: resourcetracking-deployment-hpa
spec:
scaleTargetRef:
name: resourcetracking-deployment-prod
3 changes: 2 additions & 1 deletion kustomize/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ labels:
variant: prod
patches:
- path: deployment_patch.yaml
- path: deployment_hpa_patch.yaml
- path: service_patch.yaml
- path: geoserver_statefulset_patch.yaml
- path: geoserver_headless_patch.yaml
- path: geoserver_service_patch.yaml
images:
- name: ghcr.io/dbca-wa/resource_tracking
newTag: 1.4.8
newTag: 1.4.9
7 changes: 7 additions & 0 deletions kustomize/overlays/uat/deployment_hpa_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: resourcetracking-deployment-hpa
spec:
scaleTargetRef:
name: resourcetracking-deployment-uat
1 change: 1 addition & 0 deletions kustomize/overlays/uat/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ labels:
variant: uat
patches:
- path: deployment_patch.yaml
- path: deployment_hpa_patch.yaml
- path: service_patch.yaml
- path: geoserver_statefulset_patch.yaml
- path: geoserver_headless_patch.yaml
Expand Down
Loading

0 comments on commit ba5bf1a

Please sign in to comment.