Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ConfigMap for nnf-dm-worker's sshd_config #208

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
resources:
- manager.yaml
- worker-sshd-config.yaml

generatorOptions:
disableNameSuffixHash: true
Expand Down
8 changes: 8 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ spec:
privileged: true
capabilities:
add: ['SETUID', 'SETGID', 'MKNOD']
volumeMounts:
- name: worker-config
mountPath: /etc/ssh/sshd_config
subPath: sshd_config
- name: manager
command:
- /manager
Expand All @@ -94,3 +98,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumes:
- name: worker-config
configMap:
name: nnf-dm-worker-config
17 changes: 17 additions & 0 deletions config/manager/worker-sshd-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: worker-config
data:
sshd_config: |
Include /etc/ssh/sshd_config.d/*.conf
Port 2222
StrictModes no
MaxSessions 4096
MaxStartups 4096
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Loading