This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy patheos-storage-mgm.yaml
122 lines (121 loc) · 2.9 KB
/
eos-storage-mgm.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
111
112
113
114
115
116
117
118
119
120
121
### POD ###
apiVersion: v1
kind: Pod
metadata:
name: &name eos-mgm
namespace: boxed
labels:
app: *name
spec:
restartPolicy: Always
hostname: *name
subdomain: *name
#hostNetwork: true
nodeSelector:
nodeApp: *name
containers:
- name: eos-storage
image: gitlab-registry.cern.ch/cernbox/boxedhub/eos-storage:v0.9
imagePullPolicy: IfNotPresent
#ports:
#- containerPort: 1094
#- containerPort: 1096
#- containerPort: 8000
volumeMounts:
- name: &vm_namespace mgm-namepsace
mountPath: /var/eos
- name: &vm_logs mgm-logs
mountPath: /var/log/eos
env:
### PodInfo ###
- name: PODINFO_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: PODINFO_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: PODINFO_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: PODINFO_NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: PODINFO_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
###
- name: THIS_CONTAINER
value: "EOS-MGM"
- name: DEPLOYMENT_TYPE
value: "kubernetes"
### LDAP parameters
- name: LDAP_URI
value: "ldap://ldap.boxed.svc.cluster.local"
- name: LDAP_PORT
value: "389"
- name: LDAP_BASE_DN
value: "dc=example,dc=org"
- name: LDAP_BIND_DN
value: "cn=readuser,dc=example,dc=org"
- name: LDAP_BIND_PASSWORD
value: "readuser"
### EOS parameters
- name: EOS_ROLE
value: "mgm"
- name: EOS_MGM_MASTER1
value: "eos-mgm.eos-mgm.boxed.svc.cluster.local"
- name: EOS_MGM_MASTER2
value: "eos-mgm.eos-mgm.boxed.svc.cluster.local"
- name: EOS_MGM_ALIAS
value: "eos-mgm.eos-mgm.boxed.svc.cluster.local"
- name: EOS_MQ_ALIAS
#value: "eos-mq.eos-mq.boxed.svc.cluster.local"
value: "eos-mgm.eos-mgm.boxed.svc.cluster.local" # If colocated with mgm
- name: EOS_PREFIX
value: "/eos/docker/user/"
- name: EOS_METADATADIR
value: "/eos/docker/user/.sys.dav.hide#.user.metadata/"
- name: EOS_RECYCLEDIR
value: "/eos/docker/proc/recycle/"
securityContext:
#privileged: true
capabilities:
add: ["SYS_PTRACE"]
volumes:
- name: *vm_namespace
hostPath:
path: /mnt/eos_namespace
type: Directory
- name: *vm_logs
hostPath:
path: /var/kubeVolumes/mgm_logs
type: DirectoryOrCreate
---
### SERVICE ###
apiVersion: v1
kind: Service
metadata:
name: &name eos-mgm
namespace: boxed
spec:
selector:
app: *name
clusterIP: None # Need headless to resolve to Pod IP
ports:
- name: xrootd-mgm
protocol: TCP
port: 1094
targetPort: 1094
- name: xrootd-sync
protocol: TCP
port: 1096
targetPort: 1096
- name: xrootd-http
protocol: TCP
port: 8000
targetPort: 8000