OKR/prod-upgrade/service_group/discover-service.yaml

65 lines
1.5 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: discovery-service
spec:
replicas: 1
selector:
matchLabels:
app: discovery-service
template:
metadata:
labels:
app: discovery-service
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: discovery-service
image: beaconfireiic/service-discovery:1.1.0
imagePullPolicy: Always
ports:
- name: http
containerPort: 8761
protocol: TCP
env:
- name: "LOGGING_LEVEL_ROOT"
value: "info"
- name: "EUREKA_INSTANCE_HOSTNAME"
value: "discovery-service"
- name: "SERVER_PORT"
value: "8761"
- name: "LOG_APP-NAME"
value: "discovery-service"
- name: "SPRING_PROFILES_ACTIVE"
value: "prod"
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/discovery-service
---
apiVersion: v1
kind: Service
metadata:
name: discovery-service
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8761
targetPort: http
selector:
app: discovery-service