-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapollo-admin.yml
51 lines (51 loc) · 1.39 KB
/
apollo-admin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: dmp
name: dmp-apollo-adminservice
labels:
app: dmp-apollo-adminservice
spec:
selector:
matchLabels:
app: dmp-apollo-adminservice
template:
metadata:
labels:
app: dmp-apollo-adminservice
spec:
imagePullSecrets:
- name: harbor
containers:
- image: {{ dmp-apollo-adminservice.image }}
name: apollo-adminservice
volumeMounts:
- name: host-time
mountPath: /etc/localtime
readOnly: true
- name: apollo-logs
mountPath: /opt/logs
resources:
requests:
cpu: "1000m"
memory: "1800Mi"
limits:
cpu: "1000m"
memory: "1800Mi"
ports:
- containerPort: 8090
name: adminservice
env:
- name: JAVA_OPTS
value: "-Xms1400m -Xmx1400m -XX:+UseCGroupMemoryLimitForHeap \
-Deureka.service.url=http://dmp-eureka:8761/eureka \
-Dapollo_profile=github \
-Dspring.datasource.url=jdbc:mysql://mysql:3306/ApolloConfigDB?characterEncoding=utf8 \
-Dspring.datasource.username=root -Dspring.datasource.password=JKNW23jnwxwNS"
volumes:
- name: host-time
hostPath:
path: /etc/localtime
- name: apollo-logs
hostPath:
path: /root/dmp-logs/apollo