OKR/dev-upgrade/sevice-group/config-server.yaml

108 lines
2.4 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: config-server
data:
application.yml: |
server:
port: 8888
spring:
cloud:
config:
server:
git:
uri: https://github.com/beaconfire-projects/cloud-config.git
search-paths:
- '{application}'
- micro/*
username: zyu@beaconfireinc.com
password: ENC(5/I4EP0HwkLv/ZFigX3bmP+U/yR0HAOgWpbVg4tHuREz0G9CfOZzZfFTHA342PpoLYVkj924iqo=)
bus:
refresh:
enabled: true
trace:
enabled: true
stream:
kafka:
binder:
brokers: http://kafka-0-internal:9092,http://kafka-1-internal:9092, http://kafka-2-internal:9092
jasypt:
encryptor:
algorithm: PBEWithMD5AndDES
iv-generator-classname: org.jasypt.iv.NoIvGenerator
management:
endpoints:
web:
exposure:
include: 'busrefresh' #refresh
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: config-server
spec:
replicas: 1
selector:
matchLabels:
app: config-server
template:
metadata:
labels:
app: config-server
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: config-server
image: beaconfireiic/config-server:1.1.1-prod
imagePullPolicy: Always
ports:
- name: http
containerPort: 8888
protocol: TCP
env:
- name: "LOGGING_LEVEL_ROOT"
value: "info"
- name: "SERVER_PORT"
value: "8888"
- name: "LOG_APP-NAME"
value: "config-server"
volumeMounts:
- name: config
mountPath: /app/application.yml
subPath: application.yml
- name: app-logs
mountPath: /logs
resources:
requests:
cpu: 0.1
memory: 256Mi
limits:
cpu: 1
memory: 2Gi
volumes:
- name: config
configMap:
name: config-server
- name: app-logs
hostPath:
path: /data/app_logs/config-server
---
apiVersion: v1
kind: Service
metadata:
name: config-server
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8888
targetPort: http
selector:
app: config-server