OKR/dev-upgrade/sevice-group/file-service.yml

88 lines
2.0 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: file-service
data:
application.yml: |
spring:
application:
name: file-service
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: file-service
spec:
replicas: 1
selector:
matchLabels:
app: file-service
template:
metadata:
labels:
app: file-service
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: file-service
image: beaconfireiic/file-service:1.0.0-prod
command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.fileservice.FileServiceApplication"]
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: "file-service"
- 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: file-service
- name: app-logs
hostPath:
path: /data/app_logs/file-service
---
apiVersion: v1
kind: Service
metadata:
name: file-service
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: http
selector:
app: file-service