OKR/dev-upgrade/sevice-group/recruiting.yml

265 lines
5.8 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: recruiting-command
data:
application.yml: |
spring:
application:
name: recruiting-command
profiles:
active: dev
cloud:
config:
label: main
config:
import: optional:configserver:http://config-server:8888
springdoc:
api-docs:
enabled: false
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: recruiting-command
spec:
replicas: 1
selector:
matchLabels:
app: recruiting-command
template:
metadata:
labels:
app: recruiting-command
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: recruiting-command
image: beaconfireiic/recruiting-command:1.1.0-dev
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: "recruiting-command"
- name: "SPRING_PROFILES_ACTIVE"
value: "dev"
volumeMounts:
- name: config
mountPath: /app/application.yml
subPath: application.yml
- name: app-logs
mountPath: /logs
resources:
requests:
cpu: 0.1
memory: 128Mi
limits:
cpu: 1
memory: 2Gi
volumes:
- name: config
configMap:
name: recruiting-command
- name: app-logs
hostPath:
path: /data/app_logs/recruiting-command
---
apiVersion: v1
kind: Service
metadata:
name: recruiting-command
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: http
selector:
app: recruiting-command
---
apiVersion: v1
kind: ConfigMap
metadata:
name: recruiting-query
data:
application.yml: |
spring:
application:
name: recruiting-query
profiles:
active: dev
cloud:
config:
label: main
config:
import: optional:configserver:http://config-server:8888
springdoc:
api-docs:
enabled: false
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: recruiting-query
spec:
replicas: 1
selector:
matchLabels:
app: recruiting-query
template:
metadata:
labels:
app: recruiting-query
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: recruiting-query
image: beaconfireiic/recruiting-query:1.1.0-dev
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: "recruiting-query"
- name: "SPRING_PROFILES_ACTIVE"
value: "dev"
volumeMounts:
- name: config
mountPath: /app/application.yml
subPath: application.yml
- name: app-logs
mountPath: /logs
resources:
requests:
cpu: 0.1
memory: 128Mi
limits:
cpu: 1
memory: 2Gi
volumes:
- name: config
configMap:
name: recruiting-query
- name: app-logs
hostPath:
path: /data/app_logs/recruiting-query
---
apiVersion: v1
kind: Service
metadata:
name: recruiting-query
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: http
selector:
app: recruiting-query
---
apiVersion: v1
kind: ConfigMap
metadata:
name: recruit-config
data:
application.yml: |
spring:
application:
name: recruit-config
profiles:
active: dev
cloud:
config:
label: main
config:
import: optional:configserver:http://config-server:8888
springdoc:
api-docs:
enabled: false
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: recruit-config
spec:
replicas: 1
selector:
matchLabels:
app: recruit-config
template:
metadata:
labels:
app: recruit-config
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: recruit-config
image: beaconfireiic/recruit-config:1.1.0-dev
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: "recruit-config"
- name: "SPRING_PROFILES_ACTIVE"
value: "dev"
volumeMounts:
- name: config
mountPath: /app/application.yml
subPath: application.yml
- name: app-logs
mountPath: /logs
resources:
requests:
cpu: 0.1
memory: 128Mi
limits:
cpu: 1
memory: 2Gi
volumes:
- name: config
configMap:
name: recruit-config
- name: app-logs
hostPath:
path: /data/app_logs/recruit-config
---
apiVersion: v1
kind: Service
metadata:
name: recruit-config
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: http
selector:
app: recruit-config