```html
Web SSH connects an SSH session to provide a CLI environment for utilizing the cluster via a web browser. This feature can be used without installing any browser extensions or additional software.
Web SSH has characteristics different from the local computer environment as follows:
Web SSH runs on a temporary pod provided per Realm and per user account.
The temporary pod is deleted once all Web SSH connections are closed.
Upon the first connection, Web SSH creates a storage (1Gi) per Realm and per user account.
Web SSH automatically connects the storage for all subsequent SSH sessions to maintain $Home across multiple sessions.
Permissions are set as a standard Linux user in Bash.
Using Web SSH
Connecting to Web SSH
Click the Web shell button in the top menu of the screen.
As soon as the window opens, Web SSH is automatically connected. Once the connection is complete, a connection success message will be displayed along with the prompt.
Web SSH 창을 전체 화면으로 표시하기 위해 창의 오른쪽 위에 있는 Expand 버튼을 클릭합니다. 전체 화면 상태에서 Expand 버튼을 다시 클릭하면 전체 화면이 종료됩니다.
Web SSH 종료
창의 오른쪽 위에 있는 닫기 버튼을 클릭합니다.
닫기 버튼 클릭 외에 브라우저의 새로 고침으로 인해 Web SSH 창이 닫히거나 사용자의 콘솔 login이 만료될 경우 Web SSH 연결이 자동으로 종료됩니다.
문자열 복사
Web SSH 창의 문자열을 더블 클릭하거나 마우스 드래그를 사용해서 Selection 상태가 되면 해당 문자열이 클립보드에 자동으로 복사됩니다.
Web SSH Application
Web SSH is connected with all the necessary open-source tools pre-installed and configured for cluster usage.
Below is a list of installed open-source tools:
Name | Version |
---|---|
Linux | alpine:3.13.3 |
bash | 5.1.0(1)-release |
curl | 7.74.0 |
kubectl | v1.19.3 |
helm | v2.9.1 |
Cluster Query
Retrieves a list of available clusters.
Enter the following command in the prompt:
$ kubectl config get-contexts
The list of clusters will be displayed, and the currently connected cluster will be indicated.
Kubernetes Resource Query
Retrieve the list of namespaces in the currently connected cluster.
Enter the following command in the prompt:
$ kubectl get ns
Kubernetes has permission settings for creating, retrieving, modifying, and deleting resources. These permissions may restrict access and usage of resources. You can grant or revoke Kubernetes resource permissions through the console's Roles management feature.
Storage Usage
Create and retrieve files in storage.
Enter the following command in the prompt to create a file:
$ cat << EOF > hello-file hello, zcp! EOF
Use the ls
command to check the created file and the cat
command to view its contents.
Kubernetes에는 리소스의 생성/조회/수정/삭제에 대한 권한이 존재하며 이 권한에 따라 리소스에 대한 접근과 사용에 제약이 있을 수 있습니다. 콘솔의 Roles 관리 기능을 통해 kubernetes 리소스에 대한 권한을 부여 또는 해제 할 수 있습니다.
스토리지 사용
스토리지에 파일을 생성하고 조회합니다.
프롬프트에 다음의 명령어를 입력해서 파일을 생성합니다.
$ cat << EOF > hello-file hello, zcp! EOF
ls 명령어와 cat 명령어를 사용해서 생성한 파일과 파일 내용을 확인합니다.
When Web SSH is connected, it automatically navigates to the user's $Home directory in storage.
The files and settings in the user's $Home directory persist even after Web SSH is disconnected. However, if the user is deleted from the Realm, the user's $Home directory will also be removed.
Online consultation
Contact us