Skip to content

Commit d95e6de

Browse files
committed
Deploying single Kairos Broker container app
1 parent b56fc49 commit d95e6de

2 files changed

Lines changed: 30 additions & 59 deletions

File tree

.github/capp-kairos-broker.yml

Lines changed: 29 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,35 @@
11
properties:
2-
environmentId: /subscriptions/28b743cd-805d-4451-ba1f-067df11cbafc/resourceGroups/kairos/providers/Microsoft.App/managedEnvironments/cae-kairos
3-
2+
environmentId: "/subscriptions/28b743cd-805d-4451-ba1f-067df11cbafc/resourceGroups/kairos/providers/Microsoft.App/managedEnvironments/cae-kairos"
43
configuration:
54
ingress:
65
external: true
7-
targetPort: 8080 # kairos-broker
8-
9-
secrets:
10-
- name: seq-initial-password
11-
- name: rabbitmq-user
12-
- name: rabbitmq-password
13-
6+
targetPort: 8080
147
template:
15-
restartPolicy: OnFailure
168
containers:
17-
- name: kairos-broker
18-
image: kairosfinance.azurecr.io/kairos/broker:${{ github.sha }}
19-
ports:
20-
- containerPort: 8080
21-
probes:
22-
- type: liveness
23-
httpGet:
24-
path: /health/live
25-
port: 8080
26-
initialDelaySeconds: 30
27-
periodSeconds: 30
28-
- type: readiness
29-
httpGet:
30-
path: /health/ready
31-
port: 8080
32-
initialDelaySeconds: 30
33-
periodSeconds: 60
34-
resources:
35-
cpu: 0.5
36-
memory: 1.0Gi
37-
38-
- name: kairos-seq
39-
image: datalust/seq:2025.2
40-
ports:
41-
- containerPort: 80
42-
resources:
43-
cpu: 0.25
44-
memory: 0.5Gi
45-
env:
46-
- name: ACCEPT_EULA
47-
value: "Y"
48-
- name: SEQ_FIRSTRUN_ADMINPASSWORD
49-
secretRef: seq-initial-password
50-
51-
- name: kairos-rabbitmq
52-
image: masstransit/rabbitmq:latest
53-
ports:
54-
- containerPort: 15672
55-
resources:
56-
cpu: 0.25
57-
memory: 0.5Gi
58-
env:
59-
- name: RABBITMQ_DEFAULT_USER
60-
secretRef: rabbitmq-user
61-
- name: RABBITMQ_DEFAULT_PASS
62-
secretRef: rabbitmq-password
9+
- image:
10+
name: kairos-broker
11+
probes:
12+
- type: Liveness
13+
httpGet:
14+
path: "/health/live"
15+
port: 8080
16+
initialDelaySeconds: 30
17+
periodSeconds: 30
18+
- type: Readiness
19+
httpGet:
20+
path: "/health/ready"
21+
port: 8080
22+
initialDelaySeconds: 30
23+
periodSeconds: 60
24+
env:
25+
- name: "ASPNETCORE_ENVIRONMENT"
26+
value: "Staging"
27+
scale:
28+
minReplicas: 1
29+
maxReplicas: 5
30+
rules:
31+
- name: httpscalingrule
32+
custom:
33+
type: http
34+
metadata:
35+
concurrentRequests: '50'

.github/workflows/deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,4 @@ jobs:
5151
acrName: kairosfinance
5252
containerAppName: capp-kairos-broker
5353
containerAppEnvironment: cae-kairos
54-
location: eastus2
55-
environmentVariables: |
56-
ASPNETCORE_ENVIRONMENT=Staging
54+
location: eastus2

0 commit comments

Comments
 (0)