-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Andrés Felipe Bermúdez Mendoza <andres.bermudez@edune…
…xt.co> feat: add enterprise-catalog-worker deployment. feat: enable async enterprise-catalog-worker. feat: add hpa to enterprise-catalog. refactor: address suggestions. Update tutorenterprise/templates/enterprise/apps/enterprise-catalog/settings/partials/common.py
- Loading branch information
1 parent
0182bf4
commit 54165bc
Showing
7 changed files
with
105 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- plugins/enterprise/k8s/hpa.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{%- if ENTERPRISE_CATALOG_ENABLE_HPA %} | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: enterprise-catalog | ||
labels: | ||
app.kubernetes.io/name: enterprise-catalog | ||
spec: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: enterprise-catalog | ||
minReplicas: {{ ENTERPRISE_CATALOG_MIN_REPLICAS }} | ||
maxReplicas: {{ ENTERPRISE_CATALOG_MAX_REPLICAS }} | ||
metrics: | ||
{%- if ENTERPRISE_CATALOG_AVG_CPU > 0 %} | ||
- type: Resource | ||
resource: | ||
name: cpu | ||
target: | ||
type: Utilization | ||
averageUtilization: {{ ENTERPRISE_CATALOG_AVG_CPU }} | ||
{%- endif %} | ||
{%- if ENTERPRISE_CATALOG_AVG_MEMORY|length %} | ||
- type: Resource | ||
resource: | ||
name: memory | ||
target: | ||
type: AverageValue | ||
averageValue: {{ ENTERPRISE_CATALOG_AVG_MEMORY }} | ||
{%- endif %} | ||
{%- endif %} |