forked from HDFGroup/hsds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s_deployment.yml
87 lines (87 loc) · 2.3 KB
/
k8s_deployment.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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: "hsds"
imagePullPolicy: Never
ports:
-
containerPort: 5101
env:
- name: NODE_TYPE
value: sn
- name: AWS_S3_GATEWAY
value: http://s3.amazonaws.com
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws-auth-keys
key: aws_access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws-auth-keys
key: aws_secret_access_key
- name: AWS_REGION
value: us-east-1
- name: BUCKET_NAME
value: hsds.bucket
- name: LOG_LEVEL
value: DEBUG
- name: SERVER_NAME
value: "Highly Scalable Data Service (HSDS)"
- name: HSDS_ENDPOINT
value: http://hsds.hdf.test
- name: GREETING
value: "Welcome to HSDS!"
- name: ABOUT
value: "HSDS is a webservice for HDF data"
-
name: dn
image: "hsds"
lifecycle:
preStop:
exec:
command: ["/usr/bin/curl", "-X", "DELETE", "http://127.0.0.1:6101/prestop"]
imagePullPolicy: Never
ports:
-
containerPort: 6101
env:
- name: NODE_TYPE
value: dn
- name: AWS_S3_GATEWAY
value: http://s3.amazonaws.com
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws-auth-keys
key: aws_access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws-auth-keys
key: aws_secret_access_key
- name: AWS_REGION
value: us-east-1
- name: BUCKET_NAME
value: hsds.bucket
- name: LOG_LEVEL
value: DEBUG
- name: HSDS_ENDPOINT
value: http://hsds.hdf.test