Skip to content

Commit

Permalink
modifying PDB template location under /manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidya2606 committed Oct 16, 2024
1 parent d5acab2 commit 732caea
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 24 deletions.
42 changes: 42 additions & 0 deletions template/manifests/HorizontalPodAutoscaling/manifest/draft.yaml
Original file line number Diff line number Diff line change
@@ -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
24 changes: 0 additions & 24 deletions template/manifests/PodDisruptionBudget/manifest/draft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 732caea

Please sign in to comment.