Start Walrus with one line of command丨Getting Started Tutorial

Today, the application management platform Walrus has been officially open source. This article will introduce how to install Walrus and how to use Walrus for application deployment.
 

⭐ Open source address: https://github.com/seal-io/walrus
 

Deploy Walrus

First, you need to prepare:

  • A Linux server with resources of no less than 4CPU and 8Gi of memory.

  • At least 50GB of free disk space.

  • Install Docker

  • The server opens ports 80 and 443.
     

Execute the following command to start the Walrus service:

sudo docker logs walrus 2>&1 | grep "Bootstrap Admin Password"

 

After the service is successfully started, you can https://<server-address>access the Walrus UI through , adminlog in to Walrus with the username and initial administrator password, and set a new password and Walrus access address according to the prompts.
 

When logging in for the first time, please follow the prompts and run the following commands on the server to obtain the initial administrator password.

sudo docker logs walrus 2>&1 | grep "Bootstrap Admin Password"

 

Walrus login interface
 

Add the K8s cluster as the deployment target of the application

You need to prepare first: a Kubernetes cluster that Walrus server can access. Follow these steps to add a cluster:

  • Click the [Application Management] menu in the navigation bar to enter the [default] project view by default.

  • Click the [Connector] tab.

  • Click the [New Connector] button and select the Kubernetes type.

  • Fill in the cluster name and KubeConfig file, and click [Save].
     


 

Create environment

Environment is the target of application deployment, and dynamic environment management is also one of the core functions of Walrus. You can create an environment in Walrus by following these steps:

  1. Click the [Environment] tab and click the [New Environment] button.

  2. Enter an environment name, such as dev.

  3. Click the [Add Connector] button and select the Kubernetes connector added in the previous steps.

  4. Click [Save].
     

Environment creation completed√
 

Deployment service

  1. On the environment list page, click the environment name created in the previous step to enter the environment view.

  1. Click the [New Service] button.

  2. Fill in the service name, for example myapp, confirm that the template is selected webservice.

  3. Enter the nginx image in the Image Name of the template configuration and click [OK].

  1. Click the [Save] button to complete the creation of the service.

  2. After the service deployment is completed, you can view resources, logs, execute terminal commands, access the address of the nginx service, etc.
     

View the deployment log:


 

View the resource log:


 

Open terminal:


 

✨Congratulations, you have successfully started using Walrus!

Guess you like

Origin blog.csdn.net/SEAL_Security/article/details/132409766