Skip to content

Commit f866c6b

Browse files
committed
cicd: deployment update
1 parent 34124e7 commit f866c6b

File tree

2 files changed

+58
-30
lines changed

2 files changed

+58
-30
lines changed

.deploy/deployment.yaml

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,37 @@ spec:
1313
app: entity-developer-dashbord-ui
1414
spec:
1515
containers:
16-
- name: entity-developer-dashbord-ui
17-
image: __GOOGLE_ARTIFACT_URL__/__GOOGLE_PROJECT_ID__/__GOOGLE_ARTIFACT_REPO__/entity-developer-dashbord:__LATEST_RELEASE_TAG__
18-
imagePullPolicy: Always
19-
resources:
20-
limits:
21-
memory: "128Mi"
22-
cpu: "500m"
23-
ports:
24-
- containerPort: 8080
25-
env:
26-
- name: NODE_ENV
27-
value: __NODE_ENV__
28-
- name: VUE_APP_DESC
29-
value: __VUE_APP_DESC__
30-
- name: VUE_APP_EXPLORER_BASE_URL
31-
value: __VUE_APP_EXPLORER_BASE_URL__
32-
- name: VUE_APP_NODE_SERVER_BASE_URL_REST
33-
value: __VUE_APP_NODE_SERVER_BASE_URL_REST__
34-
- name: VUE_APP_STUDIO_SERVER_BASE_URL
35-
value: __VUE_APP_STUDIO_SERVER_BASE_URL__
36-
- name: VUE_APP_STUDIO_SERVER_BASE_WS
37-
value: __VUE_APP_STUDIO_SERVER_BASE_WS__
38-
- name: VUE_APP_TITLE
39-
value: __VUE_APP_TITLE__
40-
- name: VUE_APP_VERSION
41-
value: __VUE_APP_VERSION__
42-
- name: VUE_APP_WEB_WALLET_ADDRESS
43-
value: __VUE_APP_WEB_WALLET_ADDRESS__
16+
- name: entity-developer-dashbord-ui
17+
image: __GOOGLE_ARTIFACT_URL__/__GOOGLE_PROJECT_ID__/__GOOGLE_ARTIFACT_REPO__/entity-developer-dashbord:__LATEST_RELEASE_TAG__
18+
imagePullPolicy: Always
19+
resources:
20+
limits:
21+
memory: "256Mi"
22+
cpu: "200m"
23+
requests:
24+
memory: "128Mi"
25+
cpu: "100m"
26+
ports:
27+
- containerPort: 8080
28+
env:
29+
- name: NODE_ENV
30+
value: __NODE_ENV__
31+
- name: VUE_APP_DESC
32+
value: __VUE_APP_DESC__
33+
- name: VUE_APP_EXPLORER_BASE_URL
34+
value: __VUE_APP_EXPLORER_BASE_URL__
35+
- name: VUE_APP_NODE_SERVER_BASE_URL_REST
36+
value: __VUE_APP_NODE_SERVER_BASE_URL_REST__
37+
- name: VUE_APP_STUDIO_SERVER_BASE_URL
38+
value: __VUE_APP_STUDIO_SERVER_BASE_URL__
39+
- name: VUE_APP_STUDIO_SERVER_BASE_WS
40+
value: __VUE_APP_STUDIO_SERVER_BASE_WS__
41+
- name: VUE_APP_TITLE
42+
value: __VUE_APP_TITLE__
43+
- name: VUE_APP_VERSION
44+
value: __VUE_APP_VERSION__
45+
- name: VUE_APP_WEB_WALLET_ADDRESS
46+
value: __VUE_APP_WEB_WALLET_ADDRESS__
4447
---
4548
apiVersion: v1
4649
kind: Service
@@ -53,5 +56,5 @@ spec:
5356
selector:
5457
app: entity-developer-dashbord-ui
5558
ports:
56-
- port: 8080
57-
targetPort: 80
59+
- port: 8080
60+
targetPort: 80

.deploy/hpa.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: autoscaling/v2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: entity-developer-dashbord-ui
5+
namespace: hypermine-development
6+
spec:
7+
scaleTargetRef:
8+
apiVersion: apps/v1
9+
kind: Deployment
10+
name: entity-developer-dashbord-ui
11+
minReplicas: 1
12+
maxReplicas: 5
13+
metrics:
14+
- type: Resource
15+
resource:
16+
name: cpu
17+
target:
18+
type: Utilization
19+
averageUtilization: 70
20+
- type: Resource
21+
resource:
22+
name: memory
23+
target:
24+
type: Utilization
25+
averageUtilization: 70

0 commit comments

Comments
 (0)