Skip to content

Commit

Permalink
allow pool-only deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Jun 21, 2024
1 parent dab356d commit c665faa
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 4 deletions.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,29 @@

## TL;DR

```
```bash
helm repo add dcache https://gitlab.desy.de/api/v4/projects/7648/packages/helm/test
helm repo update
helm install my-release dcache/dcache
```

## Run special version

```bash
helm install --set image.tag=10.0.3 my-release dcache/dcache
```

## Run only pools

Start pools `d` and `f`

```bash
helm install --set image.tag=10.0.3 \
--set dcache.door.enabled=false \
--set "dcache.pools={d,f}" my-release dcache/dcache
```


## Acknowledgement

This project is based on work done by Michael Schuh, DESY-IT
3 changes: 2 additions & 1 deletion templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: {{ .Release.Name }}-configmap
data:
dcache-k8s-door: |-
{{ if .Values.dcache.door.enabled }}
[door-svc]
dcache.broker.scheme = core
dcache.java.options.extra=-Dorg.dcache.net.localaddresses={{ $.Release.Name }}-door-svc.{{ $.Release.Namespace }}.svc.cluster.local
Expand Down Expand Up @@ -116,7 +117,7 @@ data:
[door-svc/admin]
admin.paths.host-keys=/etc/grid-security/ssh_host_rsa_key
{{- end }}

{{ end }}

{{- range .Values.dcache.pools }}

Expand Down
6 changes: 5 additions & 1 deletion templates/door-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{- if .Values.dcache.door.enabled }}

apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -85,4 +87,6 @@ spec:
- name: wan-port-{{ $port_index }}
port: {{ $port }}
targetPort: {{ $port }}
{{- end }}
{{- end }}

{{ end }}
7 changes: 6 additions & 1 deletion templates/door.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{{- if .Values.dcache.door.enabled }}


apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down Expand Up @@ -146,4 +149,6 @@ spec:
name: {{ $.Release.Name }}-configmap
items:
- key: "poolmanager.conf"
path: "poolmanager.conf"
path: "poolmanager.conf"

{{ end }}
2 changes: 2 additions & 0 deletions templates/pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ spec:
volumeMounts:
- mountPath: /etc/grid-security
name: certs-store-{{ . }}
{{- if $.Values.dcache.door.enabled }}
- name: wait-for-core
image: busybox:1.28
command: ['sh', '-c', "until nc -z -v {{ $.Release.Name }}-door-svc.{{ $.Release.Namespace }}.svc.cluster.local {{ $.Values.cell.tunnel }}; do echo waiting for core to start; sleep 2; done"]
{{ end }}
volumes:
{{ include "dcache.conf.volume" $ | indent 6 }}
- name: certs-store-{{ . }}
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ image:


dcache:
door:
enabled: true
pools:
- a
- b
Expand Down

0 comments on commit c665faa

Please sign in to comment.