OKR/sdet-upgrade/service_group/email-service.yaml

69 lines
1.4 KiB
YAML

# apiVersion: v1
# kind: ConfigMap
# metadata:
# name: email-query
# data:
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: email-query
spec:
replicas: 1
selector:
matchLabels:
app: email-query
template:
metadata:
labels:
app: email-query
spec:
imagePullSecrets:
- name: docker-regcred
containers:
- name: email-query
image: beaconfireiic/email-query:1.1.0-sdet
imagePullPolicy: Always
ports:
- name: http
containerPort: 8888
protocol: TCP
env:
- name: "LOGGING_LEVEL_ROOT"
value: "info"
- name: "SERVER_PORT"
value: "8888"
- name: "LOG_APP-NAME"
value: "email-query"
- name: "SPRING_PROFILES_ACTIVE"
value: "sdet"
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/email-query
---
apiVersion: v1
kind: Service
metadata:
name: email-query
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8888
targetPort: http
selector:
app: email-query