-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnotifications-deployment.yaml
65 lines (65 loc) · 2.03 KB
/
notifications-deployment.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: notifications
name: notifications
spec:
replicas: 1
selector:
matchLabels:
app: notifications
strategy:
type: Recreate
template:
metadata:
labels:
app: notifications
spec:
containers:
- env:
- name: ASPNETCORE_ENVIRONMENT
value: Development
- name: ASPNETCORE_HTTPS_PORT
value: "7121"
- name: ASPNETCORE_Kestrel__Certificates__Default__Password
value: HarmonyTeamsSecretKey
- name: ASPNETCORE_Kestrel__Certificates__Default__Path
value: /https/harmony.pfx
- name: ASPNETCORE_URLS
value: https://+:443;http://+:80
- name: AppEndpointConfiguration__HarmonyApiEndpoint
value: https://harmony-api:443/
- name: BrokerConfiguration__Host
value: harmony-rabbitmq
- name: ConnectionStrings__HarmonyJobsConnection
value: Server=harmony-sql-server;database=Harmony.Notifications.Jobs;User Id=sa;Password=%HarmonyTeams100;TrustServerCertificate=True
- name: ElasticConfiguration__Uri
value: http://elasticsearch:9200
image: harmony-notifications:latest
imagePullPolicy: IfNotPresent
name: harmony-notifications
readinessProbe:
httpGet:
path: /healthz/ready
port: 443
scheme: HTTPS
initialDelaySeconds: 15
timeoutSeconds: 1
livenessProbe:
httpGet:
path: /healthz/live
port: 443
scheme: HTTPS
initialDelaySeconds: 120
ports:
- containerPort: 443
volumeMounts:
- mountPath: /https/harmony.pfx
subPath: harmony.pfx
name: cert-config-map
restartPolicy: Always
volumes:
- name: cert-config-map
configMap:
name: cert-config-map