Skip to content

Commit

Permalink
adding custom hostname for sftp (#18)
Browse files Browse the repository at this point in the history
* adding custom hostname for sftp
  • Loading branch information
jeanmi151 authored Jan 17, 2024
1 parent 32e846e commit fd5d128
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions sftp/templates/sftp-depl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ spec:
chmod 600 /home/sftp/.ssh/authorized_keys ;
chown sftp:sftp /home/sftp/.ssh/authorized_keys ;
/usr/sbin/sshd -D -e ;
hostname: {{ tpl .Values.sftp.customHostname . }}
volumes:
- name: authorized-keys
configMap:
Expand Down
4 changes: 3 additions & 1 deletion sftp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ sftp:

#imagePullSecrets:
#- name: secret


customHostname: "{{ .Release.Name }}-{{ .Release.Namespace }}"

extraVolumes: []
# - mountPath: /usr/share/nginx/html
# name: volume-pvc
Expand Down

0 comments on commit fd5d128

Please sign in to comment.