Skip to content

Commit

Permalink
add optional ssh-admin cell
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Oct 21, 2023
1 parent 75f6855 commit d28b02e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ data:
[door-svc/spacemanager]
spacemanager.authz.link-group-file-name=/opt/dcache/etc/linkgroupauthz.conf
{{- if .Values.sshAdmin.enabled }}
[door-svc/admin]
admin.paths.host-keys=/etc/grid-security/ssh_host_rsa_key
{{- end }}


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

[pool-{{ . }}-svc]
Expand Down
8 changes: 8 additions & 0 deletions templates/door.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ spec:
volumeMounts:
- mountPath: /etc/grid-security
name: certs
{{- if .Values.sshAdmin.enabled }}
- name: gen-ssh-key
image: kroniak/ssh-client
command: ['sh', '-c', "ssh-keygen -t rsa -b 2048 -N '' -f /etc/grid-security/ssh_host_rsa_key; chown 994:1000 /etc/grid-security/ssh_host_rsa_key"]
volumeMounts:
- mountPath: /etc/grid-security
name: certs
{{- end }}
volumes:
{{ include "dcache.conf.volume" . | indent 6 }}
- name: certs
Expand Down
5 changes: 5 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ door:
gridftp: 2811
srm: 8443

sshAdmin:
enabled: true
port: 22224


mover:
nfs: 32049
xrootd: 31094
Expand Down

0 comments on commit d28b02e

Please sign in to comment.