Update SSH port from 22 to 2222 in Dockerfile, entrypoint, and Kubernetes configurations
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 1m35s
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 1m35s
This commit is contained in:
parent
b715b4bb59
commit
5584dc1f29
9 changed files with 31 additions and 24 deletions
|
|
@ -31,7 +31,8 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
|||
WEB_SSH_PORT=3000 \
|
||||
WEBSSH2_LISTEN_PORT=3001 \
|
||||
WEBSSH2_SSH_HOST=127.0.0.1 \
|
||||
WEBSSH2_SSH_PORT=22 \
|
||||
WEBSSH2_SSH_PORT=2222 \
|
||||
SSH_PORT=2222 \
|
||||
WEBSSH2_HEADER_TEXT=k8s-mgmt-pod \
|
||||
WEBSSH2_SSH_HOSTKEY_ENABLED=false
|
||||
|
||||
|
|
@ -99,9 +100,9 @@ COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|||
RUN chmod 0755 /usr/local/bin/entrypoint.sh \
|
||||
&& chmod 0644 /etc/profile.d/20-k8s-tools-completion.sh
|
||||
|
||||
EXPOSE 22 3000
|
||||
EXPOSE 2222 3000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
|
||||
CMD nc -z 127.0.0.1 22 || exit 1
|
||||
CMD nc -z 127.0.0.1 "${SSH_PORT:-2222}" || exit 1
|
||||
|
||||
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue