|
@@ -19,6 +19,7 @@ kind: Deployment
|
|
|
metadata:
|
|
|
name: message-center
|
|
|
spec:
|
|
|
+ replicas: 1
|
|
|
selector:
|
|
|
matchLabels:
|
|
|
app: message-center
|
|
@@ -27,27 +28,32 @@ spec:
|
|
|
labels:
|
|
|
app: message-center
|
|
|
spec:
|
|
|
+ imagePullSecrets:
|
|
|
+ - name: persagy
|
|
|
containers:
|
|
|
- - image: registry.persagy.com/ftp/message-center:m0.0.3
|
|
|
- imagePullPolicy: IfNotPresent
|
|
|
- name: message-center
|
|
|
+ - name: message-center
|
|
|
+ image: labisenlin.persagy.com/library/message-center:develop-fbcc3cd
|
|
|
+ imagePullPolicy: Always
|
|
|
ports:
|
|
|
- containerPort: 8080
|
|
|
name: server-port
|
|
|
+ env:
|
|
|
+ - name: TZ
|
|
|
+ value: Asia/Shanghai
|
|
|
resources:
|
|
|
limits:
|
|
|
memory: 4Gi
|
|
|
requests:
|
|
|
memory: 1Gi
|
|
|
volumeMounts:
|
|
|
- - mountPath: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/application.yml
|
|
|
- name: admpath
|
|
|
+ - name: admpath
|
|
|
+ mountPath: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/application.yml
|
|
|
subPath: path/to/application.yml
|
|
|
volumes:
|
|
|
- - configMap:
|
|
|
+ - name: admpath
|
|
|
+ configMap:
|
|
|
+ name: message-center
|
|
|
defaultMode: 511
|
|
|
items:
|
|
|
- key: application.yml
|
|
|
- path: path/to/application.yml
|
|
|
- name: message-center
|
|
|
- name: admpath
|
|
|
+ path: path/to/application.yml
|