-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy-aci.yaml
110 lines (109 loc) · 2.91 KB
/
deploy-aci.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# https://www.raeffs.dev/blog/2021/05-mai/25-autogenerate-ssl-certificates-for-aci/
# https://itnext.io/automatic-https-with-azure-container-instances-aci-4c4c8b03e8c9
api-version: 2021-03-01
location: southeastasia
name: folioblocks
properties:
imageRegistryCredentials:
- server: folio.azurecr.io
username: ...
password: ...
containers:
- name: caddy-sidecar-ssl-generator
properties:
image: caddy:latest
command:
[
"caddy",
"reverse-proxy",
"--from",
"folioblocks.southeastasia.azurecontainer.io",
"--to",
"localhost:6001",
]
ports:
- port: 80
protocol: TCP
- port: 443
protocol: TCP
resources:
requests:
cpu: 0.5
memoryInGB: 0.5
volumeMounts:
- name: foliostorage
mountPath: /data
readOnly: false
- name: folioblocks-master-node
properties:
image: folio.azurecr.io/folioblocks-node-master:latest
ports:
- port: 6001
protocol: TCP
resources:
requests:
cpu: 0.5
memoryInGB: 1.5
volumeMounts:
- name: foliostorage
mountPath: /usr/local/node-resources
readOnly: false
- name: folioblocks-archival-node-1
properties:
image: folio.azurecr.io/folioblocks-node-archival-1:latest
ports:
- port: 5001
protocol: TCP
resources:
requests:
cpu: 1.0
memoryInGB: 1.5
volumeMounts:
- name: foliostorage
mountPath: /usr/local/node-resources
readOnly: false
- name: folioblocks-archival-node-2
properties:
image: folio.azurecr.io/folioblocks-node-archival-2:latest
ports:
- port: 5002
protocol: TCP
resources:
requests:
cpu: 1.0
memoryInGB: 1.5
volumeMounts:
- name: foliostorage
mountPath: /usr/local/node-resources
readOnly: false
- name: folioblocks-archival-node-3
properties:
image: folio.azurecr.io/folioblocks-node-archival-3:latest
ports:
- port: 5003
protocol: TCP
resources:
requests:
cpu: 1.0
memoryInGB: 1.5
volumeMounts:
- name: foliostorage
mountPath: /usr/local/node-resources
readOnly: false
volumes:
- name: foliostorage
azureFile:
sharename: folio-file-share
storageAccountName: foliostorage
storageAccountKey: ...
ipAddress:
ports:
- port: 80
protocol: TCP
- port: 443
protocol: TCP
type: Public
dnsNameLabel: folioblocks
osType: Linux
tags: null
type: Microsoft.ContainerInstance/containerGroups