Replies: 7 comments 8 replies
-
创建nodejs应用成功之后提示 toast 是创建成功,但是列表中是空的不显示,再次同样的名字创建提示已存在 |
Beta Was this translation helpful? Give feedback.
-
创建应用后,然后关闭应用。重新进入云沙箱,应用列表中的应用没有了。应该关闭,不能将用户的应用删除吧。 |
Beta Was this translation helpful? Give feedback.
-
目前发现的bug:
|
Beta Was this translation helpful? Give feedback.
-
使用上的一些问题如下:
|
Beta Was this translation helpful? Give feedback.
-
updateDevbox接口参数校验不严格,可以设置任意域名前缀、开启任意多端口。 设置任意域名前缀{
"patch": [
{
"type": "patch",
"kind": "Devbox",
"value": {
"apiVersion": "devbox.sealos.io/v1alpha1",
"kind": "Devbox",
"metadata": {
"name": "devbox"
},
"spec": {
"squash": false,
"network": {
"type": "NodePort",
"extraPorts": [
{
"containerPort": 8080
}
]
},
"resource": {
"cpu": "1000m",
"memory": "2048Mi"
},
"runtimeRef": {
"name": "php-8-2-20",
"namespace": "devbox-system"
},
"state": "Running",
"tolerations": [
{
"key": "devbox.sealos.io/node",
"operator": "Exists",
"effect": "NoSchedule"
}
],
"affinity": {
"nodeAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "devbox.sealos.io/node",
"operator": "Exists"
}
]
}
]
}
}
}
}
}
},
{
"type": "create",
"kind": "Service",
"value": "apiVersion: v1\nkind: Service\nmetadata:\n name: devbox\n labels:\n cloud.sealos.io/devbox-manager: devbox\nspec:\n ports:\n - port: 8080\n targetPort: 8080\n name: rkymclfkasrw\n selector:\n app.kubernetes.io/name: devbox\n app.kubernetes.io/part-of: devbox\n app.kubernetes.io/managed-by: sealos\n"
},
{
"type": "create",
"kind": "Ingress",
"value": "apiVersion: networking.k8s.io/v1\nkind: Ingress\nmetadata:\n name: devbox-qrcxhmyaaxhs\n labels:\n cloud.sealos.io/devbox-manager: devbox\n cloud.sealos.io/app-deploy-manager-domain: admin\n annotations:\n kubernetes.io/ingress.class: nginx\n nginx.ingress.kubernetes.io/proxy-body-size: 32m\n nginx.ingress.kubernetes.io/ssl-redirect: 'false'\n nginx.ingress.kubernetes.io/backend-protocol: HTTP\n nginx.ingress.kubernetes.io/client-body-buffer-size: 64k\n nginx.ingress.kubernetes.io/proxy-buffer-size: 64k\n nginx.ingress.kubernetes.io/proxy-send-timeout: '300'\n nginx.ingress.kubernetes.io/proxy-read-timeout: '300'\n nginx.ingress.kubernetes.io/server-snippet: |\n client_header_buffer_size 64k;\n large_client_header_buffers 4 128k;\nspec:\n rules:\n - host: admin.usw.sailos.io\n http:\n paths:\n - pathType: Prefix\n path: /\n backend:\n service:\n name: devbox\n port:\n number: 8080\n tls:\n - hosts:\n - admin.usw.sailos.io\n secretName: wildcard-cert\n"
}
],
"devboxName": "devbox"
} 实现绑定域名:https://admin.usw.sailos.io/ 存在钓鱼隐患 开启任意多端口{
"patch": [
{
"type": "patch",
"kind": "Devbox",
"value": {
"apiVersion": "devbox.sealos.io/v1alpha1",
"kind": "Devbox",
"metadata": {
"name": "devbox"
},
"spec": {
"squash": false,
"network": {
"type": "NodePort",
"extraPorts": [
{
"containerPort": 8080
},
{
"containerPort": 8081
},
{
"containerPort": 8082
},
{
"containerPort": 8083
},
{
"containerPort": 8084
},
{
"containerPort": 8085
},
{
"containerPort": 8086
},
{
"containerPort": 8087
},
{
"containerPort": 8088
}
]
},
"resource": {
"cpu": "1000m",
"memory": "2048Mi"
},
"runtimeRef": {
"name": "php-8-2-20",
"namespace": "devbox-system"
},
"state": "Running",
"tolerations": [
{
"key": "devbox.sealos.io/node",
"operator": "Exists",
"effect": "NoSchedule"
}
],
"affinity": {
"nodeAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "devbox.sealos.io/node",
"operator": "Exists"
}
]
}
]
}
}
}
}
}
},
{
"type": "patch",
"kind": "Service",
"value": {
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "devbox",
"labels": {
"cloud.sealos.io/devbox-manager": "devbox"
}
},
"spec": {
"ports": [
{
"port": 8080,
"targetPort": 8080,
"name": "rkymclfkasrw"
},
{
"port": 8081,
"targetPort": 8081,
"name": "soapvrgnbzyv"
},
{
"port": 8082,
"targetPort": 8082,
"name": "lxyydnzbtxiv"
}
],
"selector": {
"app.kubernetes.io/name": "devbox",
"app.kubernetes.io/part-of": "devbox",
"app.kubernetes.io/managed-by": "sealos"
}
}
}
},
{
"type": "create",
"kind": "Ingress",
"value": "apiVersion: networking.k8s.io/v1\nkind: Ingress\nmetadata:\n name: devbox-hwewabbjpeoj\n labels:\n cloud.sealos.io/devbox-manager: devbox\n cloud.sealos.io/app-deploy-manager-domain: yuqctajpzklj\n annotations:\n kubernetes.io/ingress.class: nginx\n nginx.ingress.kubernetes.io/proxy-body-size: 32m\n nginx.ingress.kubernetes.io/ssl-redirect: 'false'\n nginx.ingress.kubernetes.io/backend-protocol: HTTP\n nginx.ingress.kubernetes.io/client-body-buffer-size: 64k\n nginx.ingress.kubernetes.io/proxy-buffer-size: 64k\n nginx.ingress.kubernetes.io/proxy-send-timeout: '300'\n nginx.ingress.kubernetes.io/proxy-read-timeout: '300'\n nginx.ingress.kubernetes.io/server-snippet: |\n client_header_buffer_size 64k;\n large_client_header_buffers 4 128k;\nspec:\n rules:\n - host: yuqctajpzklj.usw.sailos.io\n http:\n paths:\n - pathType: Prefix\n path: /\n backend:\n service:\n name: devbox\n port:\n number: 8081\n tls:\n - hosts:\n - yuqctajpzklj.usw.sailos.io\n secretName: wildcard-cert\n"
},
{
"type": "create",
"kind": "Ingress",
"value": "apiVersion: networking.k8s.io/v1\nkind: Ingress\nmetadata:\n name: devbox-bwfrylymnpcw\n labels:\n cloud.sealos.io/devbox-manager: devbox\n cloud.sealos.io/app-deploy-manager-domain: bisrqpnkhqmi\n annotations:\n kubernetes.io/ingress.class: nginx\n nginx.ingress.kubernetes.io/proxy-body-size: 32m\n nginx.ingress.kubernetes.io/ssl-redirect: 'false'\n nginx.ingress.kubernetes.io/backend-protocol: HTTP\n nginx.ingress.kubernetes.io/client-body-buffer-size: 64k\n nginx.ingress.kubernetes.io/proxy-buffer-size: 64k\n nginx.ingress.kubernetes.io/proxy-send-timeout: '300'\n nginx.ingress.kubernetes.io/proxy-read-timeout: '300'\n nginx.ingress.kubernetes.io/server-snippet: |\n client_header_buffer_size 64k;\n large_client_header_buffers 4 128k;\nspec:\n rules:\n - host: bisrqpnkhqmi.usw.sailos.io\n http:\n paths:\n - pathType: Prefix\n path: /\n backend:\n service:\n name: devbox\n port:\n number: 8082\n tls:\n - hosts:\n - bisrqpnkhqmi.usw.sailos.io\n secretName: wildcard-cert\n"
}
],
"devboxName": "devbox"
} |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
被采纳的意见赠送 sealos coin 或文化衫。参与规则:
体验地址 https://usw.sailos.io (未正式上线,数据不保留)
改进意见:
Beta Was this translation helpful? Give feedback.
All reactions