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 , admin
log 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"
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:
-
Click the [Environment] tab and click the [New Environment] button.
-
Enter an environment name, such as
dev
. -
Click the [Add Connector] button and select the Kubernetes connector added in the previous steps.
-
Click [Save].
Deployment service
- On the environment list page, click the environment name created in the previous step to enter the environment view.
-
Click the [New Service] button.
-
Fill in the service name, for example
myapp
, confirm that the template is selectedwebservice
. -
Enter the nginx image in the Image Name of the template configuration and click [OK].
-
Click the [Save] button to complete the creation of the service.
-
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!