2023-02-21 22:19:42 +03:30

59 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: booking-deployment
labels:
app: booking
spec:
replicas: 1
selector:
matchLabels:
app: booking
template:
metadata:
labels:
app: booking
spec:
containers:
- image: meysamh66/booking-microservices-booking:v1.5.7
name: booking
ports:
- containerPort: 80
env:
- name: "ASPNETCORE_ENVIRONMENT"
value: "docker"
- name: ASPNETCORE_URLS
value: "http://+"
# - name: "RabbitMqOptions__HostName"
# value: "localhost"
# - name: "RabbitMqOptions__ExchangeName"
# value: "booking"
# - name: "RabbitMqOptions__UserName"
# value: "guest"
# - name: "RabbitMqOptions__Password"
# value: "guest"
# - name: "RabbitMqOptions__Port"
# value: "5672"
- name: "EventStore__ConnectionString"
value: "esdb://eventstore:2113?tls=false"
volumeMounts:
- name: appsettings-volume
mountPath: /app/Settings
volumes:
- name: appsettings-volume
configMap:
name: appsettings
---
apiVersion: v1
kind: Service
metadata:
name: booking-service
spec:
selector:
app: booking
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
type: ClusterIP