forked from prateekpandey14/Explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cstor.yml
59 lines (59 loc) · 1.51 KB
/
cstor.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
# prometheus-deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cstor
spec:
replicas: 1
template:
metadata:
labels:
name: cstor
spec:
containers:
- name: cstor
imagePullPolicy: IfNotPresent
image: payes/cstor:latest
command: ["/bin/bash"]
args: [ "-c", "chmod +x /init.sh; /init.sh volname=cstor_vol path=/tmp/cstor size=8g"]
ports:
- containerPort: 3260
name: iscsi
- containerPort: 22
name: sshdname
resources:
requests:
# # A memory request of 250M means it will try to ensure minimum
# # 250MB RAM .
# memory: "128M"
# # A cpu request of 128m means it will try to ensure minimum
# # .125 CPU; where 1 CPU means :
# # 1 *Hyperthread* on a bare-metal Intel processor with Hyperthreading
cpu: "50m"
# limits:
# memory: "700M"
# cpu: "500m"
volumeMounts:
- name: cstor-volume
mountPath: /tmp/cstor
volumes:
# All the time series stored in this volume in form of .db file.
- name: cstor-volume
hostPath:
path: /tmp/cstor
---
apiVersion: v1
kind: Service
metadata:
name: cstor
spec:
ports:
- name: iscsi
port: 3260
targetPort: 3260
- name: sshname
port: 22
targetPort: 22
selector:
name: cstor
type: LoadBalancer