user registration switch (#4473)

This commit is contained in:
Jiahui
2024-01-09 22:47:18 +08:00
committed by GitHub
parent 87269b7997
commit 24417328a1
2 changed files with 30 additions and 2 deletions
+15 -1
View File
@@ -87,4 +87,18 @@ Certificates are crucial for the security of your Sealos cluster. Follow these s
Changing a domain name in a Sealos cluster is complex, often requiring adjustments in multiple components and services. We do not currently provide a comprehensive guide for this process in our documentation. However, future plans include the release of a Sealos Cluster Management Panel for easier domain name and certificate replacement.
It's important to note that domain name changes demand deep knowledge of the cluster's network setup and may involve intricate DNS settings and service discovery. We recommend undertaking such changes only if you have the requisite expertise or with guidance from a professional.
It's important to note that domain name changes demand deep knowledge of the cluster's network setup and may involve intricate DNS settings and service discovery. We recommend undertaking such changes only if you have the requisite expertise or with guidance from a professional.
### user registration switch
disabled user register:
```shell
kubectl -n sealos patch deployment desktop-frontend -p '{"spec":{"template":{"spec":{"containers":[{"name":"desktop-frontend","env":[{"name":"SIGN_UP_ENABLED","value":"false"}]}]}}}}'
```
enabled user register:
```shell
kubectl -n sealos patch deployment desktop-frontend -p '{"spec":{"template":{"spec":{"containers":[{"name":"desktop-frontend","env":[{"name":"SIGN_UP_ENABLED","value":"true"}]}]}}}}'
```
@@ -91,4 +91,18 @@ $ echo 1 > /proc/sys/net/ipv4/ip_forward
Sealos 集群管理面板,该面板将提供更加简便的方法来替换集群域名和证书。
请注意,域名更换通常需要对集群的网络配置进行深入了解,并且可能涉及到 DNS
设置、服务发现等多个方面。因此,建议在执行此类操作时,确保您具备相应的技术知识或咨询专业人士的帮助。
设置、服务发现等多个方面。因此,建议在执行此类操作时,确保您具备相应的技术知识或咨询专业人士的帮助。
### 用户注册开关
关闭用户注册:
```shell
kubectl -n sealos patch deployment desktop-frontend -p '{"spec":{"template":{"spec":{"containers":[{"name":"desktop-frontend","env":[{"name":"SIGN_UP_ENABLED","value":"false"}]}]}}}}'
```
开启用户注册:
```shell
kubectl -n sealos patch deployment desktop-frontend -p '{"spec":{"template":{"spec":{"containers":[{"name":"desktop-frontend","env":[{"name":"SIGN_UP_ENABLED","value":"true"}]}]}}}}'
```