Skip to content

Commit

Permalink
cicd: deployment update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Nov 14, 2024
1 parent 34124e7 commit f866c6b
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 30 deletions.
63 changes: 33 additions & 30 deletions .deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,37 @@ spec:
app: entity-developer-dashbord-ui
spec:
containers:
- name: entity-developer-dashbord-ui
image: __GOOGLE_ARTIFACT_URL__/__GOOGLE_PROJECT_ID__/__GOOGLE_ARTIFACT_REPO__/entity-developer-dashbord:__LATEST_RELEASE_TAG__
imagePullPolicy: Always
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 8080
env:
- name: NODE_ENV
value: __NODE_ENV__
- name: VUE_APP_DESC
value: __VUE_APP_DESC__
- name: VUE_APP_EXPLORER_BASE_URL
value: __VUE_APP_EXPLORER_BASE_URL__
- name: VUE_APP_NODE_SERVER_BASE_URL_REST
value: __VUE_APP_NODE_SERVER_BASE_URL_REST__
- name: VUE_APP_STUDIO_SERVER_BASE_URL
value: __VUE_APP_STUDIO_SERVER_BASE_URL__
- name: VUE_APP_STUDIO_SERVER_BASE_WS
value: __VUE_APP_STUDIO_SERVER_BASE_WS__
- name: VUE_APP_TITLE
value: __VUE_APP_TITLE__
- name: VUE_APP_VERSION
value: __VUE_APP_VERSION__
- name: VUE_APP_WEB_WALLET_ADDRESS
value: __VUE_APP_WEB_WALLET_ADDRESS__
- name: entity-developer-dashbord-ui
image: __GOOGLE_ARTIFACT_URL__/__GOOGLE_PROJECT_ID__/__GOOGLE_ARTIFACT_REPO__/entity-developer-dashbord:__LATEST_RELEASE_TAG__
imagePullPolicy: Always
resources:
limits:
memory: "256Mi"
cpu: "200m"
requests:
memory: "128Mi"
cpu: "100m"
ports:
- containerPort: 8080
env:
- name: NODE_ENV
value: __NODE_ENV__
- name: VUE_APP_DESC
value: __VUE_APP_DESC__
- name: VUE_APP_EXPLORER_BASE_URL
value: __VUE_APP_EXPLORER_BASE_URL__
- name: VUE_APP_NODE_SERVER_BASE_URL_REST
value: __VUE_APP_NODE_SERVER_BASE_URL_REST__
- name: VUE_APP_STUDIO_SERVER_BASE_URL
value: __VUE_APP_STUDIO_SERVER_BASE_URL__
- name: VUE_APP_STUDIO_SERVER_BASE_WS
value: __VUE_APP_STUDIO_SERVER_BASE_WS__
- name: VUE_APP_TITLE
value: __VUE_APP_TITLE__
- name: VUE_APP_VERSION
value: __VUE_APP_VERSION__
- name: VUE_APP_WEB_WALLET_ADDRESS
value: __VUE_APP_WEB_WALLET_ADDRESS__
---
apiVersion: v1
kind: Service
Expand All @@ -53,5 +56,5 @@ spec:
selector:
app: entity-developer-dashbord-ui
ports:
- port: 8080
targetPort: 80
- port: 8080
targetPort: 80
25 changes: 25 additions & 0 deletions .deploy/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: entity-developer-dashbord-ui
namespace: hypermine-development
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: entity-developer-dashbord-ui
minReplicas: 1
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 70

0 comments on commit f866c6b

Please sign in to comment.