OKR/qa-upgrade/sevice-group_qa/summary.yaml

63 lines
1.3 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: summary-query
spec:
replicas: 1
selector:
matchLabels:
app: summary-query
template:
metadata:
labels:
app: summary-query
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: summary-query
image: beaconfireiic/summary-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: "summary-query"
- name: "SPRING_PROFILES_ACTIVE"
value: "qa"
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/summary-query
---
apiVersion: v1
kind: Service
metadata:
name: summary-query
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: http
selector:
app: summary-query