Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: booking-deployment
# namespace: travel-booking
# labels:
# app: bookingapi
# spec:
# replicas: 1
# selector:
# matchLabels:
# app: bookingapi
# template:
# metadata:
# labels:
# app: bookingapi
# spec:
# containers:
# - name: bookingapi
# image: registry.gitlab.au.dk/wao56_travel_booking/bookingservice:V.1.1.1
# ports:
# - containerPort: 5173
# env:
# - name: ASPNETCORE_ENVIRONMENT
# value: Production
# - name: ACCEPT_EULA
# valueFrom:
# secretKeyRef:
# name: sql-server-secret
# key: ACCEPT_EULA
# - name: MSSQL_SA_PASSWORD
# valueFrom:
# secretKeyRef:
# name: sql-server-secret
# key: MSSQL_SA_PASSWORD
# resources:
# requests:
# cpu: "150m"
# memory: "64Mi"
# limits:
# cpu: "600m"
# memory: "128Mi"
# volumeMounts:
# - name: config-volume
# mountPath: /app/appsettings.json
# subPath: appsettings.json
# volumes:
# - name: config-volume
# configMap:
# name: booking-config
# imagePullSecrets:
# - name: creds
apiVersion: apps/v1
kind: Deployment
metadata:
name: booking-deployment
namespace: travel-booking
labels:
app: bookingapi
spec:
replicas: 1
selector:
matchLabels:
app: bookingapi
template:
metadata:
labels:
app: bookingapi
spec:
containers:
- name: bookingapi
image: registry.gitlab.au.dk/wao56_travel_booking/bookingservice:V.1.1.8
ports:
- containerPort: 5173
env:
- name: ASPNETCORE_ENVIRONMENT
value: Production
- name: ACCEPT_EULA
valueFrom:
secretKeyRef:
key: ACCEPT_EULA
- name: MSSQL_SA_PASSWORD
valueFrom:
secretKeyRef:
- name: RABBITMQ_HOST
value: rabbitmq-service
- name: RABBITMQ_PORT
value: "5672"
- name: RABBITMQ_USERNAME
valueFrom:
secretKeyRef:
name: rabbitmq-secret
key: RABBITMQ_DEFAULT_USER
- name: RABBITMQ_PASSWORD
valueFrom:
secretKeyRef:
name: rabbitmq-secret
key: RABBITMQ_DEFAULT_PASS
volumeMounts:
- name: config-volume
mountPath: /app/appsettings.json
subPath: appsettings.json
volumes:
- name: config-volume
configMap:
name: booking-config
imagePullSecrets: