Развертывание Consumer
Обновлено: 05.03.2024
Consumer — внутренний-сервис.
Деплоймент:
apiVersion: apps/v1
kind: Deployment
metadata:
name: consumer-deployment
namespace: timetta
labels:
appName: consumer-deployment
spec:
selector:
matchLabels:
appName: consumer-app
template:
metadata:
labels:
appName: consumer-app
spec:
containers:
- name: consumer
image: cr.yandex/crpr8bvek949tq2fuqkf/consumer:latest
ports:
- protocol: TCP
containerPort: 5402
env:
- name: "ASPNETCORE_URLS"
value: "http://*:5402"
volumeMounts:
- mountPath: /app/secrets
name: app-settings-secret
readOnly: true
volumes:
- name: app-settings-secret
projected:
sources:
- secret:
name: app-settings
- secret:
name: kafka-cert
imagePullSecrets:
- name: service-settings
Сервис и ingress-контроллер:
---
apiVersion: v1
kind: Service
metadata:
name: consumer-service
namespace: timetta
spec:
selector:
appName: consumer-app
ports:
- protocol: TCP
port: 80
targetPort: 5402