修改服务名

This commit is contained in:
2026-04-22 09:39:05 +08:00
parent 88e46d7877
commit 222815a12a
5 changed files with 19 additions and 20 deletions

View File

@@ -1,13 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: report-engine-config
name: data-engine-config
namespace: default
data:
config.yml: |
server:
address : ":3001"
name: "report-engine"
name: "data-engine"
workerId: 1
logPath: "resource/log/server"
logStdout: true

View File

@@ -20,7 +20,7 @@ spec:
image: data-engine:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3001
- containerPort: 3002
protocol: TCP
name: http
env:
@@ -41,20 +41,20 @@ spec:
cpu: "1000m"
livenessProbe:
tcpSocket:
port: 3001
port: 3002
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
readinessProbe:
tcpSocket:
port: 3001
port: 3002
initialDelaySeconds: 15
periodSeconds: 5
timeoutSeconds: 3
volumes:
- name: config-volume
configMap:
name: report-engine-config
name: data-engine-config
- name: log-volume
emptyDir: {}
restartPolicy: Always

View File

@@ -11,7 +11,7 @@ spec:
app: data-engine
ports:
- name: http
port: 3001
targetPort: 3001
nodePort: 30301
port: 3002
targetPort: 3002
nodePort: 30302
protocol: TCP