OKR/sdet-upgrade/service_group/batch-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: batch-command
# data:
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: batch-command
spec:
replicas: 1
selector:
matchLabels:
app: batch-command
template:
metadata:
labels:
app: batch-command
spec:
imagePullSecrets:
- name: docker-regcred
containers:
- name: batch-command
image: beaconfireiic/batch-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: "batch-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/batch-command
---
apiVersion: v1
kind: Service
metadata:
name: batch-command
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8888
targetPort: http
selector:
app: batch-command
---
# apiVersion: v1
# kind: ConfigMap
# metadata:
# name: batch-query
# data:
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: batch-query
spec:
replicas: 1
selector:
matchLabels:
app: batch-query
template:
metadata:
labels:
app: batch-query
spec:
imagePullSecrets:
- name: docker-regcred
containers:
- name: batch-query
image: beaconfireiic/batch-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: "batch-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/batch-query
---
apiVersion: v1
kind: Service
metadata:
name: batch-query
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8888
targetPort: http
selector:
app: batch-query