forked from HDFGroup/hsds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s_deployment_azure.yml
72 lines (72 loc) · 1.83 KB
/
k8s_deployment_azure.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: hsds
name: hsds
spec:
replicas: 1
selector:
matchLabels:
app: hsds
template:
metadata:
labels:
app: hsds
spec:
containers:
-
name: sn
image: "myacrname.azurecr.io/hsds:v1"
imagePullPolicy: Always
ports:
-
containerPort: 5101
env:
- name: NODE_TYPE
value: sn
- name: BUCKET_NAME
value: home
- name: LOG_LEVEL
value: INFO
- name: SERVER_NAME
value: "Highly Scalable Data Service (HSDS)"
- name: HSDS_ENDPOINT
value: "http://test.local.com"
- name: GREETING
value: "Welcome to HSDS!"
- name: ABOUT
value: "HSDS is a webservice for HDF data"
- name: AZURE_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: azure-conn-str
key: az_conn_str
- name: SN_RAM
value: "2g"
- name: dn
image: "myacrname.azurecr.io/hsds:v1"
lifecycle:
preStop:
exec:
command: ["/usr/bin/curl", "-X", "DELETE", "http://127.0.0.1:6101/prestop"]
imagePullPolicy: Always
ports:
-
containerPort: 6101
env:
- name: NODE_TYPE
value: dn
- name: BUCKET_NAME
value: home
- name: LOG_LEVEL
value: INFO
- name: HSDS_ENDPOINT
value: "http://test.local.com"
- name: AZURE_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: azure-conn-str
key: az_conn_str
- name: DN_RAM
value: "2g"