OKR/dev-upgrade/sevice-group/batch.yaml

124 lines
2.7 KiB
YAML

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: deploy-regcred
containers:
- name: batch-command
image: beaconfireiic/batch-command:1.1.0-sdet
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
env:
- name: "LOGGING_LEVEL_ROOT"
value: "info"
- name: "SERVER_PORT"
value: "8080"
- name: "LOG_APP-NAME"
value: "batch-command"
- name: "SPRING_PROFILES_ACTIVE"
value: "dev"
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: 8080
targetPort: http
selector:
app: batch-command
---
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: deploy-regcred
containers:
- name: batch-query
image: beaconfireiic/batch-query:1.1.0-sdet
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
env:
- name: "LOGGING_LEVEL_ROOT"
value: "info"
- name: "SERVER_PORT"
value: "8080"
- name: "LOG_APP-NAME"
value: "batch-query"
- name: "SPRING_PROFILES_ACTIVE"
value: "dev"
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: 8080
targetPort: http
selector:
app: batch-query