Commit 4ab2c656 by 蒋勇

d

parent 538dc808
apiVersion: v1
kind: ConfigMap
metadata:
name: task-config
namespace: job-tasks
data:
APP_ENV: prod
DB_HOST: 47.95.76.74
DB_PORT: "3306"
DB_USER: root
DB_PWD: Gongsibao2018
REDIS_HOST: r-2ze60261d9063784.redis.rds.aliyuncs.com
REDIS_PORT: "6379"
REDIS_PWD: Gongsibao2018
TASK_DB_NAME: tasks
TASK_REDIS_DB: "15"
NODE_PORT: "80"
...@@ -16,9 +16,15 @@ spec: ...@@ -16,9 +16,15 @@ spec:
app: jiaxiya app: jiaxiya
spec: spec:
restartPolicy: Always restartPolicy: Always
volumes:
- name: shared-data
emptyDir: {}
containers: containers:
- name: jiaxiya - name: jiaxiya
image: registry.cn-beijing.aliyuncs.com/hantang/jiaxiya:30.0.3 image: registry.cn-beijing.aliyuncs.com/hantang/jiaxiya:30.0.3
volumeMounts:
- name: shared-data
mountPath: /tmp/tmjsonfile/
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
- containerPort: 80 - containerPort: 80
...@@ -77,12 +83,17 @@ spec: ...@@ -77,12 +83,17 @@ spec:
configMapKeyRef: configMapKeyRef:
name: zhichan-config name: zhichan-config
key: REDIS_PWD key: REDIS_PWD
- name: NODE_PORT - name: NODE_PORT
valueFrom: valueFrom:
configMapKeyRef: configMapKeyRef:
name: zhichan-config name: zhichan-config
key: NODE_PORT key: NODE_PORT
- name: javapostoss
image: registry.cn-beijing.aliyuncs.com/hantang/javapostoss:40.0.0
imagePullPolicy: IfNotPresent
volumeMounts:
- name: shared-data
mountPath: /tmp/tmjsonfile/
--- ---
kind: Service kind: Service
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment