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