OKR/tcs-upgrade/service_group/kpi-service.yaml

138 lines
2.8 KiB
YAML
Raw Normal View History

2023-06-05 15:07:08 +08:00
# apiVersion: v1
# kind: ConfigMap
# metadata:
# name: kpi-command
# data:
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kpi-command
spec:
replicas: 1
selector:
matchLabels:
app: kpi-command
template:
metadata:
labels:
app: kpi-command
spec:
imagePullSecrets:
- name: docker-regcred
containers:
- name: kpi-command
image: beaconfireiic/kpi-command:1.1.0-sdet
2023-06-06 22:57:43 +08:00
imagePullPolicy: Always
2023-06-05 15:07:08 +08:00
ports:
- name: http
containerPort: 8888
protocol: TCP
env:
- name: "LOGGING_LEVEL_ROOT"
value: "info"
- name: "SERVER_PORT"
value: "8888"
- name: "LOG_APP-NAME"
value: "kpi-command"
- name: "SPRING_PROFILES_ACTIVE"
2023-06-05 15:14:53 +08:00
value: "sdet"
2023-06-05 15:07:08 +08:00
volumeMounts:
- name: app-logs
mountPath: /logs
resources:
requests:
cpu: 0.1
memory: 128Mi
limits:
cpu: 1
memory: 2Gi
volumes:
- name: app-logs
hostPath:
path: /data/app_logs/kpi-command
---
apiVersion: v1
kind: Service
metadata:
name: kpi-command
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8888
targetPort: http
selector:
app: kpi-command
---
# apiVersion: v1
# kind: ConfigMap
# metadata:
# name: kpi-query
# data:
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kpi-query
spec:
replicas: 1
selector:
matchLabels:
app: kpi-query
template:
metadata:
labels:
app: kpi-query
spec:
imagePullSecrets:
- name: docker-regcred
containers:
- name: kpi-query
image: beaconfireiic/kpi-query:1.1.0-sdet
2023-06-06 22:57:43 +08:00
imagePullPolicy: Always
2023-06-05 15:07:08 +08:00
ports:
- name: http
containerPort: 8888
protocol: TCP
env:
- name: "LOGGING_LEVEL_ROOT"
value: "info"
- name: "SERVER_PORT"
value: "8888"
- name: "LOG_APP-NAME"
value: "kpi-query"
- name: "SPRING_PROFILES_ACTIVE"
2023-06-05 15:14:53 +08:00
value: "sdet"
2023-06-05 15:07:08 +08:00
volumeMounts:
- name: app-logs
mountPath: /logs
resources:
requests:
cpu: 0.1
memory: 128Mi
limits:
cpu: 1
memory: 2Gi
volumes:
- name: app-logs
hostPath:
path: /data/app_logs/kpi-query
---
apiVersion: v1
kind: Service
metadata:
name: kpi-query
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8888
targetPort: http
selector:
app: kpi-query