fix: 重命名 objectStorge 为 objectstory 并修复 service ports 缩进
This commit is contained in:
+14
-14
@@ -1,25 +1,25 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: s3storge-api
|
name: objectstory-api
|
||||||
namespace: juwan
|
namespace: juwan
|
||||||
labels:
|
labels:
|
||||||
app: s3storge-api
|
app: objectstory-api
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
revisionHistoryLimit: 5
|
revisionHistoryLimit: 5
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: s3storge-api
|
app: objectstory-api
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: s3storge-api
|
app: objectstory-api
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: find-endpoints
|
serviceAccountName: find-endpoints
|
||||||
containers:
|
containers:
|
||||||
- name: s3storge-api
|
- name: objectstory-api
|
||||||
image: s3storge-api:latest
|
image: objectstory-api:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8888
|
- containerPort: 8888
|
||||||
- containerPort: 4001 # 暴露端口
|
- containerPort: 4001 # 暴露端口
|
||||||
@@ -53,7 +53,7 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: s3storge-api-svc
|
name: objectstory-api-svc
|
||||||
namespace: juwan
|
namespace: juwan
|
||||||
annotations:
|
annotations:
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
@@ -68,22 +68,22 @@ spec:
|
|||||||
port: 8888
|
port: 8888
|
||||||
targetPort: 8888
|
targetPort: 8888
|
||||||
selector:
|
selector:
|
||||||
app: s3storge-api
|
app: objectstory-api
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: autoscaling/v2
|
apiVersion: autoscaling/v2
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: s3storge-api-hpa-c
|
name: objectstory-api-hpa-c
|
||||||
namespace: juwan
|
namespace: juwan
|
||||||
labels:
|
labels:
|
||||||
app: s3storge-api-hpa-c
|
app: objectstory-api-hpa-c
|
||||||
spec:
|
spec:
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: s3storge-api
|
name: objectstory-api
|
||||||
minReplicas: 3
|
minReplicas: 3
|
||||||
maxReplicas: 10
|
maxReplicas: 10
|
||||||
metrics:
|
metrics:
|
||||||
@@ -99,15 +99,15 @@ spec:
|
|||||||
apiVersion: autoscaling/v2
|
apiVersion: autoscaling/v2
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: s3storge-api-hpa-m
|
name: objectstory-api-hpa-m
|
||||||
namespace: juwan
|
namespace: juwan
|
||||||
labels:
|
labels:
|
||||||
app: s3storge-api-hpa-m
|
app: objectstory-api-hpa-m
|
||||||
spec:
|
spec:
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: s3storge-api
|
name: objectstory-api
|
||||||
minReplicas: 3
|
minReplicas: 3
|
||||||
maxReplicas: 10
|
maxReplicas: 10
|
||||||
metrics:
|
metrics:
|
||||||
+17
-16
@@ -1,25 +1,25 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: s3storge-rpc
|
name: objectstory-rpc
|
||||||
namespace: juwan
|
namespace: juwan
|
||||||
labels:
|
labels:
|
||||||
app: s3storge-rpc
|
app: objectstory-rpc
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
revisionHistoryLimit: 5
|
revisionHistoryLimit: 5
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: s3storge-rpc
|
app: objectstory-rpc
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: s3storge-rpc
|
app: objectstory-rpc
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: find-endpoints
|
serviceAccountName: find-endpoints
|
||||||
containers:
|
containers:
|
||||||
- name: s3storge-rpc
|
- name: objectstory-rpc
|
||||||
image: s3storge-rpc:latest
|
image: objectstory-rpc:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
- containerPort: 4001 # 暴露端口
|
- containerPort: 4001 # 暴露端口
|
||||||
@@ -53,7 +53,7 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: s3storge-rpc-svc
|
name: objectstory-rpc-svc
|
||||||
namespace: juwan
|
namespace: juwan
|
||||||
annotations:
|
annotations:
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
@@ -64,25 +64,26 @@ spec:
|
|||||||
- name: metrics
|
- name: metrics
|
||||||
port: 4001
|
port: 4001
|
||||||
targetPort: 4001
|
targetPort: 4001
|
||||||
- port: 8080
|
- name: rpc
|
||||||
targetPort: 8080
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
selector:
|
selector:
|
||||||
app: s3storge-rpc
|
app: objectstory-rpc
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: autoscaling/v2
|
apiVersion: autoscaling/v2
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: s3storge-rpc-hpa-c
|
name: objectstory-rpc-hpa-c
|
||||||
namespace: juwan
|
namespace: juwan
|
||||||
labels:
|
labels:
|
||||||
app: s3storge-rpc-hpa-c
|
app: objectstory-rpc-hpa-c
|
||||||
spec:
|
spec:
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: s3storge-rpc
|
name: objectstory-rpc
|
||||||
minReplicas: 3
|
minReplicas: 3
|
||||||
maxReplicas: 10
|
maxReplicas: 10
|
||||||
metrics:
|
metrics:
|
||||||
@@ -98,15 +99,15 @@ spec:
|
|||||||
apiVersion: autoscaling/v2
|
apiVersion: autoscaling/v2
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: s3storge-rpc-hpa-m
|
name: objectstory-rpc-hpa-m
|
||||||
namespace: juwan
|
namespace: juwan
|
||||||
labels:
|
labels:
|
||||||
app: s3storge-rpc-hpa-m
|
app: objectstory-rpc-hpa-m
|
||||||
spec:
|
spec:
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: s3storge-rpc
|
name: objectstory-rpc
|
||||||
minReplicas: 3
|
minReplicas: 3
|
||||||
maxReplicas: 10
|
maxReplicas: 10
|
||||||
metrics:
|
metrics:
|
||||||
Reference in New Issue
Block a user