Skip to content

Commit

Permalink
fix #17 and #16
Browse files Browse the repository at this point in the history
  • Loading branch information
ciangottini committed Apr 12, 2022
1 parent f2bae26 commit 0f7b620
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 43 deletions.
2 changes: 1 addition & 1 deletion stable/htcondor-aas/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: v1
appVersion: 8.9.9
description: A Helm chart for the deployment of HTCondor cluster
name: htcondor
version: 2.1.14
version: 2.1.15
icon: https://research.cs.wisc.edu/htcondor/images/HTCondor_wiki_logo_small.png
maintainers:
- name: ttedesch
Expand Down
12 changes: 3 additions & 9 deletions stable/htcondor-aas/templates/deployment_master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,9 @@ spec:
spec:
priorityClassName: system-node-critical
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- master
topologyKey: kubernetes.io/hostname
{{- if .Values.master.affinity}}
{{ .Values.master.affinity | indent 8 }}
{{- end }}
#hostNetwork: true
containers:
- name: ccb
Expand Down
14 changes: 5 additions & 9 deletions stable/htcondor-aas/templates/deployment_schedd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@ spec:
priorityClassName: system-node-critical
#hostNetwork: true
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- schedd
topologyKey: kubernetes.io/hostname
{{- if .Values.schedd.affinity}}
{{ .Values.schedd.affinity | indent 8 }}
{{- end }}
hostAliases:
- hostnames:
- {{ .Values.schedd.hostname }}
Expand All @@ -45,6 +39,8 @@ spec:
volumeMounts:
- mountPath: "/etc/condor/config.d"
name: configd
- name: spool
mountPath: /var/lib/condor/spool
#- mountPath: "/etc/ca"
# name: cafile
- name: clustersecret
Expand Down
27 changes: 3 additions & 24 deletions stable/htcondor-aas/templates/deployment_wn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,9 @@ spec:
spec:
priorityClassName: system-node-critical
affinity:
#podAntiAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# - labelSelector:
# matchExpressions:
# - key: app.kubernetes.io/name
# operator: NotIn
# values:
# - master
# - schedd
# - wn
# topologyKey: kubernetes.io/hostname
{{- if .Values.cvmfs.enabled }}
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
{{- if .Values.cvmfs.enabled }}
- cvmfs
{{- end }}
topologyKey: kubernetes.io/hostname
{{- end }}
{{- if .Values.wn.affinity}}
{{ .Values.wn.affinity | indent 8 }}
{{- end }}
#hostNetwork: true
{{- if .Values.ttsCache.enabled }}
serviceAccountName: tts-account-{{ .Release.Namespace}}
Expand Down
44 changes: 44 additions & 0 deletions stable/htcondor-aas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ cluster:

schedd:
enabled: true
affinity: |
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- schedd
- master
- wn
topologyKey: kubernetes.io/hostname
mapfile: |
SCITOKENS https:\/\/dodas-iam.cloud.cnaf.infn.it\/,(.*) \[email protected]
PASSWORD (*.) condor
Expand All @@ -32,6 +44,27 @@ schedd:

master:
enabled: true
affinity: |
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- schedd
- master
- wn
topologyKey: kubernetes.io/hostname
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- cvmfs
topologyKey: kubernetes.io/hostname
publicIP: <master public IP>
extraconfig: ""
hostname: <master public IP>.myip.cloud.infn.it
Expand All @@ -49,6 +82,17 @@ master:

wn:
enabled: true
affinity: |
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- schedd
- master
topologyKey: kubernetes.io/hostname
replicas: 1
image:
name: ttedesch/htcondor-execute
Expand Down

0 comments on commit 0f7b620

Please sign in to comment.