125 lines
2.8 KiB
YAML
125 lines
2.8 KiB
YAML
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: subscription-command
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: subscription-command
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: subscription-command
|
||
|
spec:
|
||
|
imagePullSecrets:
|
||
|
- name: deploy-regcred
|
||
|
containers:
|
||
|
- name: subscription-command
|
||
|
image: beaconfireiic/subscription-command:1.1.1-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: "subscription-command"
|
||
|
- 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/subscription-command
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: subscription-command
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
ports:
|
||
|
- name: http
|
||
|
protocol: TCP
|
||
|
port: 8080
|
||
|
targetPort: http
|
||
|
selector:
|
||
|
app: subscription-command
|
||
|
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: subscription-query
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: subscription-query
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: subscription-query
|
||
|
spec:
|
||
|
imagePullSecrets:
|
||
|
- name: deploy-regcred
|
||
|
containers:
|
||
|
- name: subscription-query
|
||
|
image: beaconfireiic/subscription-query:1.1.1-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: "subscription-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/subscription-query
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: subscription-query
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
ports:
|
||
|
- name: http
|
||
|
protocol: TCP
|
||
|
port: 8080
|
||
|
targetPort: http
|
||
|
selector:
|
||
|
app: subscription-query
|