修改服务名
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user