48 lines
910 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: flight-deployment
labels:
app: flight
spec:
replicas: 1
selector:
matchLabels:
app: flight
template:
metadata:
labels:
app: flight
spec:
containers:
- image: meysamh66/booking-microservices-flight:v1.6.5
name: flight
ports:
- containerPort: 80
env:
- name: ASPNETCORE_ENVIRONMENT
value: docker
- name: ASPNETCORE_URLS
value: http://+
volumeMounts:
- name: appsettings-volume
mountPath: /app/Settings
volumes:
- name: appsettings-volume
configMap:
name: appsettings
---
apiVersion: v1
kind: Service
metadata:
name: flight
spec:
selector:
app: flight
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
type: ClusterIP