Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntax3rror404 committed Aug 24, 2024
1 parent 80b6ed1 commit 2a8abca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ RUN addgroup --gid 1001 dev && \
# Adjust permissions for /usr/local and home directories
RUN chown -R dev:dev /usr/local /home/dev

RUN echo "+:dev:ALL" >> /etc/security/access.conf
RUN echo "+:dev:ALL" >> /etc/security/access.conf && touch /etc/nologin

# Switch to non-root user
USER dev
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/cm-entrypoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ data:
echo "Starting SSH service with host keys from /home/dev/ssh_keys on port 2222."
/usr/sbin/sshd -D -ddd -e -f /etc/ssh/sshd_config \
/usr/sbin/sshd -D -e -f /etc/ssh/sshd_config \
-o Port={{ .Values.service.targetPort }} \
-o HostKey=/home/dev/ssh_keys/ssh_host_rsa_key \
-o HostKey=/home/dev/ssh_keys/ssh_host_ecdsa_key \
Expand Down
1 change: 1 addition & 0 deletions chart/templates/cm-sshconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ data:
PermitRootLogin no
PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePrivilegeSeparation no
UsePAM yes
X11Forwarding yes
PrintMotd no
Expand Down
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
replicaCount: 1

image:
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:b25b3089bece565cf372eb90ac4302db4decbf57af2ee67b6e09df2fa7438d66
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:d0917c569a0ac6267cb7bc18a0d950dc97afaaf495f799637394a682be81e95e
pullPolicy: IfNotPresent

service:
Expand Down

0 comments on commit 2a8abca

Please sign in to comment.