OKR/trainer-upgrade/service_group/company-service.yaml

136 lines
2.8 KiB
YAML

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