3.6 KiB
Resource OpenLiteSpeed
Note
Two (you can specify a different number) pods are created. They work simultaneously. If one pod fails, the second pod starts processing all requests until a replacement for the failed pod is brought up. When changes are made to the virtual host configuration, OpenLiteSpeed is restarted sequentially in all pods.
The administration panel OpenLiteSpeed is available at an address:
<domain>:31080(local and remote)<server ip>:31080(remote)<node ip>:7080(local,<node ip>can be found upon request:kube.sh --info | grep 7080)
Install
Processing
-
Creation.
- Prepare the import file.
- Import the YAML.
-
Post-processing.
- Initialization.
Command:
sudo kube.sh --ols install
Example of log:
🔹[OpenLiteSpeed] Install
🔹[OpenLiteSpeed] Preparing /app/kube/assets/yaml/openlitespeed.yaml
🔹[K3S] Applying YAML /app/kube/data/yaml/openlitespeed.yaml
💡[K3S] Waiting for pods to be ready... | 1 not ready
💡[K3S] Waiting for pods to be ready... | 1 not ready
✅[OpenLiteSpeed] Applied /app/kube/data/yaml/openlitespeed.yaml
🔹[OpenLiteSpeed] Initialization...
🔹[OpenLiteSpeed] Authorization parameters updated
service/traefik patched
🔹[OpenLiteSpeed] Pod: openlitespeed-0 | Restart...
🔹[OpenLiteSpeed] Pod: openlitespeed-1 | Restart...
✅[OpenLiteSpeed] Initialization completed successfully
Remove
Command:
sudo kube.sh --ols remove
Status
Command:
sudo kube.sh --ols status
Example of log:
🔹[OpenLiteSpeed] Status
✅[OpenLiteSpeed] openlitespeed-0 | Running | PID 251
✅[OpenLiteSpeed] openlitespeed-1 | Running | PID 216
Info
Command:
sudo kube.sh --ols info
Example of log:
🔹[OpenLiteSpeed] Info
🔹[OpenLiteSpeed] openlitespeed-0
litespeed is running with PID 251.
🔹[OpenLiteSpeed] openlitespeed-1
litespeed is running with PID 216.
Version
Command:
sudo kube.sh --ols version
Example of log:
🔹[OpenLiteSpeed] Version
✅[OpenLiteSpeed] openlitespeed-0 | LiteSpeed/1.8.3 Open (BUILD built: Fri Feb 28 16:33:02 UTC 2025)
✅[OpenLiteSpeed] openlitespeed-0 | PHP: 8.3.17
✅[OpenLiteSpeed] openlitespeed-1 | LiteSpeed/1.8.3 Open (BUILD built: Fri Feb 28 16:33:02 UTC 2025)
✅[OpenLiteSpeed] openlitespeed-1 | PHP: 8.3.17
Restart
Command:
sudo kube.sh --ols restart
Example of log:
🔹[OpenLiteSpeed] Restart
🔹[OpenLiteSpeed] Pod: openlitespeed-0 | Restart...
🔹[OpenLiteSpeed] Pod: openlitespeed-1 | Restart...
Site list
Command:
sudo kube.sh --ols list [option]
Options:
- all - All sites (colored up/down) (default)
- all - All sites
- up - Unlocked sites
- down - Locked sites
Example of log:
example1.com
example2.com
example3.com
Site unlock
Note
Unlock domain (Resume site operation in OpenLiteSpeed).
Command:
sudo kube.sh --ols up <domain>
Site lock
Note
Lock domain (Pause the site in OpenLiteSpeed).
The OpenLiteSpeed page will be displayed with a 403 error when the domain is accessed.
Command:
sudo kube.sh --ols down <domain>
Config test
Command:
sudo kube.sh --ols config