Skip to content

Commit 3ce247b

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

3 files changed

Lines changed: 27 additions & 65 deletions

File tree

.github/capp-kairos-broker.yml

Lines changed: 21 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,27 @@
1+
name: capp-kairos-broker
12
properties:
2-
environmentId: /subscriptions/28b743cd-805d-4451-ba1f-067df11cbafc/resourceGroups/kairos/providers/Microsoft.App/managedEnvironments/cae-kairos
3-
3+
environmentId: "/subscriptions/28b743cd-805d-4451-ba1f-067df11cbafc/resourceGroups/kairos/providers/Microsoft.App/managedEnvironments/cae-kairos"
44
configuration:
55
ingress:
66
external: true
7-
targetPort: 8080 # kairos-broker
8-
9-
secrets:
10-
- name: seq-initial-password
11-
- name: rabbitmq-user
12-
- name: rabbitmq-password
13-
7+
targetPort: 8080
148
template:
15-
restartPolicy: OnFailure
169
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
10+
- image: kairosfinance.azurecr.io/kairos/broker
11+
name: kairos-broker
12+
resources:
13+
cpu: 0.5
14+
memory: 1Gi
15+
probes:
16+
- type: Liveness
17+
httpGet:
18+
path: "/health/live"
19+
port: 8080
20+
initialDelaySeconds: 30
21+
periodSeconds: 30
22+
- type: Readiness
23+
httpGet:
24+
path: "/health/ready"
25+
port: 8080
26+
initialDelaySeconds: 30
27+
periodSeconds: 60

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,12 @@ jobs:
4343
uses: azure/container-apps-deploy-action@v2
4444
with:
4545
dockerfilePath: ./src/Gateway/Dockerfile
46-
imageToBuild: kairosfinance.azurecr.io/kairos/broker:${{ github.sha }}
46+
imageToBuild: kairosfinance.azurecr.io/kairos/broker
4747
azureCredentials: ${{ secrets.AZURE_CREDENTIALS }}
4848
appSourcePath: ${{ github.workspace }}
4949
yamlConfigPath: .github/capp-kairos-broker.yml
5050
resourceGroup: kairos
5151
acrName: kairosfinance
52-
containerAppName: capp-kairos-broker
5352
containerAppEnvironment: cae-kairos
5453
location: eastus2
55-
environmentVariables: |
56-
ASPNETCORE_ENVIRONMENT=Staging
54+
environmentVariables: ASPNETCORE_ENVIRONMENT=Staging

src/Gateway/appsettings.Staging.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
22
"Serilog": {
3-
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.Seq" ],
3+
"Using": [ "Serilog.Sinks.Seq" ],
44
"WriteTo": [
5-
{ "Name": "Console" },
65
{
76
"Name": "Seq",
87
"Args": {
9-
"serverUrl": "http://kairos-seq:5341",
10-
"apiKey": "Serilog:WriteTo:1:Args:apiKey"
8+
"serverUrl": "http://capp-kairos-seq:5341",
9+
"apiKey": "Serilog:WriteTo:0:Args:apiKey"
1110
}
1211
}
1312
]
1413
},
15-
"Health": { "Seq": { "Url": "http://kairos-seq:80/health" } },
14+
"Health": { "Seq": { "Url": "http://capp-kairos-seq:80/health" } },
1615
"EventBus": {
1716
"HostAddress": "EventBus:HostAddress",
1817
"Events": { },

0 commit comments

Comments
 (0)