forked from alahiff/simple-htcondor-cluster-on-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 2
/
htcondor-central-manager-deployment.yaml.in
46 lines (46 loc) · 1.17 KB
/
htcondor-central-manager-deployment.yaml.in
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: htcondor-central-manager
name: htcondor-central-manager
spec:
replicas: 1
template:
metadata:
labels:
app: htcondor-central-manager
spec:
containers:
- name: htcondor-central-manager
image: @REGISTRY@/condor-central-manager:latest
resources:
requests:
memory: "1.0Gi"
cpu: "500m"
limits:
memory: "1.0Gi"
cpu: "500m"
env:
- name: CONDOR_HOST
value: "htcondor-central-manager"
- name: SEC_PASSWORD_FILE
value: "/etc/condor/pool_password/password"
volumeMounts:
- name: pool-password
mountPath: /etc/condor/pool_password
- name: rocks-home
mountPath: /home
ports:
- containerPort: 9618
protocol: TCP
volumes:
- name: pool-password
secret:
defaultMode: 0600
secretName: htcondor-pool-password
- name: rocks-home
nfs:
# FIXME: use the right IP
server: @NFS_SERVER@
path: "/export/home"