From debc697e6dc20d1d6bf468245bf2c3420af948a4 Mon Sep 17 00:00:00 2001 From: Vidya Reddy <59590642+Vidya2606@users.noreply.github.com> Date: Wed, 16 Oct 2024 10:53:30 -0700 Subject: [PATCH] modifying PDB template location under /manifests --- .../manifest/draft.yaml | 42 +++++++++++++++++++ .../manifest/hpa.yaml | 0 .../PodDisruptionBudget/manifest/draft.yaml | 24 ----------- 3 files changed, 42 insertions(+), 24 deletions(-) create mode 100644 template/manifests/HorizontalPodAutoscaling/manifest/draft.yaml rename template/manifests/{PodDisruptionBudget => HorizontalPodAutoscaling}/manifest/hpa.yaml (100%) diff --git a/template/manifests/HorizontalPodAutoscaling/manifest/draft.yaml b/template/manifests/HorizontalPodAutoscaling/manifest/draft.yaml new file mode 100644 index 00000000..85aa7fb0 --- /dev/null +++ b/template/manifests/HorizontalPodAutoscaling/manifest/draft.yaml @@ -0,0 +1,42 @@ +templateName: "horizontalPodAutoscaling-manifest" +description: "This template is used to create a horizontalPodAutoscaling for an application" +type: "manifest" +variables: + - name: "APPNAME" + type: "string" + kind: "kubernetesResourceName" + description: "the name of the application" + - name: "PARTOF" + type: "string" + kind: "label" + description: "the label to identify which project the resource belong to" + - name: "GENERATORLABEL" + type: "string" + kind: "label" + description: "the label to identify who generated the resource" + default: + value: "draft" + - name: "MINIMUMREPLICAS" + type: "int" + kind: "replicaCount" + description: "specifies the minimum number of pod replicas that the deployment should have" + default: + value: 2 + - name: "MAXIMUMREPLICAS" + type: "int" + kind: "replicaCount" + description: "defines the maximum number of pod replicas the deployment can scale to" + default: + value: 5 + - name: "RESOURCETYPE" + type: "string" + kind: "scalingResourceType" + description: "specifies the resource type (e.g., cpu or memory) to be monitored for scaling" + default: + value: "cpu" + - name: "AVGUTILIZATION" + type: "int" + kind: "scalingResourceUtilization" + description: "specifies the average utilization for the monitored resource, triggering scaling when exceeded" + default: + value: 80 \ No newline at end of file diff --git a/template/manifests/PodDisruptionBudget/manifest/hpa.yaml b/template/manifests/HorizontalPodAutoscaling/manifest/hpa.yaml similarity index 100% rename from template/manifests/PodDisruptionBudget/manifest/hpa.yaml rename to template/manifests/HorizontalPodAutoscaling/manifest/hpa.yaml diff --git a/template/manifests/PodDisruptionBudget/manifest/draft.yaml b/template/manifests/PodDisruptionBudget/manifest/draft.yaml index 3086ad3e..58bc20fa 100644 --- a/template/manifests/PodDisruptionBudget/manifest/draft.yaml +++ b/template/manifests/PodDisruptionBudget/manifest/draft.yaml @@ -16,30 +16,6 @@ variables: description: "the label to identify who generated the resource" default: value: "draft" - - name: "MINIMUMREPLICAS" - type: "int" - kind: "replicaCount" - description: "specifies the minimum number of pod replicas that the deployment should have" - default: - value: 2 - - name: "MAXIMUMREPLICAS" - type: "int" - kind: "replicaCount" - description: "defines the maximum number of pod replicas the deployment can scale to" - default: - value: 5 - - name: "RESOURCETYPE" - type: "string" - kind: "scalingResourceType" - description: "specifies the resource type (e.g., cpu or memory) to be monitored for scaling" - default: - value: "cpu" - - name: "AVGUTILIZATION" - type: "int" - kind: "scalingResourceUtilization" - description: "specifies the average utilization for the monitored resource, triggering scaling when exceeded" - default: - value: 80 - name: "MAXUNAVAILABLE" type: "int" kind: "resourceLimit"