nocalhost / nocalhost Goto Github PK
View Code? Open in Web Editor NEWNocalhost is Cloud Native Dev Environment.
Home Page: https://nocalhost.dev
License: Other
Nocalhost is Cloud Native Dev Environment.
Home Page: https://nocalhost.dev
License: Other
Currently, the KubeVela integration with Nocalhost can be done via the nocalhost
trait. Here is a live demo.
But after the KubeVela app is deployed, its structure looks like following in IDE:
To make the integration more KubeVela native, we should expose OAM concepts to users, e.g. Component/Trait.
The dashboard will display the application deployments. But it doesn't support OAM-type application:
To make the integration more KubeVela native, we can add a OAM type.
hi,
When I do the [Step 2: Install nocalhost server with helm],
I typed as follows:
helm install nocalhost-server ./nocalhost/deployments/chart --kubeconfig=./cls-pc5oy0lu-config
it comes
Error: could not get Kubernetes config for context "": stat ./cls-pc5oy0lu-config: no such file or directory
so,where is this file [./cls-pc5oy0lu-config] ? it is only your local file?
What happened: When I Create space for my application it prompt me failed to bind cluster ,please try again.
What you expected to happen: Create space success.
Anything else we need to know?:
This is log of nocalhost-api:
(/opt/src/internal/nocalhost-api/repository/user/user_base_repo.go:103)
[2021-03-06 17:18:54] [0.81ms] SELECT * FROM `users` WHERE `users`.`deleted_at` IS NULL AND ((`users`.`id` = 2)) ORDER BY `users`.`id` ASC LIMIT 1
[1 rows affected or returned ]
{"level":"info","time":"2021-03-06T17:18:54.149+0800","file":"user/user_base_repo.go:98","msg":"[repo.user_base] get user by uid: 2 cost: 862547 ns","ip":"172.20.2.155","app":""}
(/opt/src/internal/nocalhost-api/repository/application/application_repo.go:74)
[2021-03-06 17:18:54] [0.91ms] SELECT * FROM `applications` WHERE `applications`.`deleted_at` IS NULL AND ((status=1 and id=1)) ORDER BY `applications`.`id` ASC LIMIT 1
[1 rows affected or returned ]
(/opt/src/internal/nocalhost-api/repository/cluster/cluster_repo.go:95)
[2021-03-06 17:18:54] [0.81ms] SELECT * FROM `clusters` WHERE `clusters`.`deleted_at` IS NULL AND ((id=1)) ORDER BY `clusters`.`id` ASC LIMIT 1
[1 rows affected or returned ]
(/opt/src/internal/nocalhost-api/repository/cluster_user/cluster_user_repo.go:115)
[2021-03-06 17:18:54] [0.92ms] SELECT * FROM `clusters_users` WHERE `clusters_users`.`deleted_at` IS NULL AND ((`clusters_users`.`application_id` = 1) AND (`clusters_users`.`user_id` = 2)) ORDER BY `clusters_users`.`id` ASC LIMIT 1
[0 rows affected or returned ]
{"level":"info","time":"2021-03-06T17:18:54.369+0800","file":"clientgo/client.go:759","msg":"GET ServiceAccount name nocalhost-dev-account, namespace nh2tzzl: ","ip":"172.20.2.155","app":""}
{"level":"info","time":"2021-03-06T17:18:54.373+0800","file":"clientgo/client.go:771","msg":"ServiceAccount added","ip":"172.20.2.155","app":""}
(/opt/src/internal/nocalhost-api/repository/cluster_user/cluster_user_repo.go:123)
[2021-03-06 17:18:54] Error 1054: Unknown column 'space_resource_limit' in 'field list'
(/opt/src/internal/nocalhost-api/repository/cluster_user/cluster_user_repo.go:123)
[2021-03-06 17:18:54] [0.52ms] INSERT INTO `clusters_users` (`application_id`,`user_id`,`space_name`,`cluster_id`,`kubeconfig`,`memory`,`cpu`,`space_resource_limit`,`namespace`,`created_at`,`updated_at`,`deleted_at`) VALUES (1,2,'test',1,'apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQ2ekNDQXRPZ0F3SUJBZ0lERWdKMk1BMEdDU3FHU0liM0RRRUJDd1VBTUdveEtqQW9CZ05WQkFvVElXTXoKTnpSbFlqUmpabVZrWVRVMFlXVTJZbVl3WVRGaU1qUXpaRGczTUdNd05URVFNQTRHQTFVRUN4TUhaR1ZtWVhWcwpkREVxTUNnR0ExVUVBeE1oWXpNM05HVmlOR05tWldSaE5UUmhaVFppWmpCaE1XSXlORE5rT0Rjd1l6QTFNQjRYCkRURTVNVEF4TkRBeE1UUXdNRm9YRFRNNU1UQXdPVEF4TVRreE0xb3dhakVxTUNnR0ExVUVDaE1oWXpNM05HVmkKTkdObVpXUmhOVFJoWlRaaVpqQmhNV0l5TkROa09EY3dZekExTVJBd0RnWURWUVFMRXdka1pXWmhkV3gwTVNvdwpLQVlEVlFRREV5RmpNemMwWldJMFkyWmxaR0UxTkdGbE5tSm1NR0V4WWpJME0yUTROekJqTURVd2dnRWlNQTBHCkNTcUdTSWIzRFFFQkFRVUFBNElCRHdBd2dnRUtBb0lCQVFDMjBFTlR1VDZjZGFzeHk3ODhwUTVseTFycXI0MW8KVnBLenRkRG9BYW0zdjJxcVUwZWJ0TzVPYlBFOXBmZWxXbVFGNzg5NVF4Y3h3UGZFYkdyQXlXWDR2L1JGZHVyVQo5VVNJTDhxT3hrYWxpdEQ4Tm5ScFlhMUV5d0pGKzIzS29RRDBCUmxaTGxBNnBFcXE5Z1BacmRpK3pjRGxNOTl6CkxSRjMvZkJGbEhWRmNvV2ZyVnYvMTVOOEZ1RzBLYmNabjlidVJzekg1c1RvVXIvZzRuRGNNbUErRDVjekI0SDMKME5lakZFK2orangwa3VXY2l3emJ2NngyOHhnS3ZJd0JVMlBad3A5aTdNZ1BoNFhCZThUcXBpNUhMdXFKR1lmdQpicHg0c0dvZExqVjJIWUZsYWxKREFsTTJoY2pjSXk0TGpMeVErTFZCZzlHalY2WDBhb0xUMUY1RkFnTUJBQUdqCmdaa3dnWll3RGdZRFZSMFBBUUgvQkFRREFnS3NNQThHQTFVZEV3RUIvd1FGTUFNQkFmOHdQQVlJS3dZQkJRVUgKQVFFRU1EQXVNQ3dHQ0NzR0FRVUZCekFCaGlCb2RIUndPaTh2WTJWeWRITXVZV056TG1Gc2FYbDFiaTVqYjIwdgpiMk56Y0RBMUJnTlZIUjhFTGpBc01DcWdLS0FtaGlSb2RIUndPaTh2WTJWeWRITXVZV056TG1Gc2FYbDFiaTVqCmIyMHZjbTl2ZEM1amNtd3dEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBRy9tcWtTU1JuOVNJTVNEcVZLMzQ4OUYKWUVMNXh3KytzelNNK2FtWlMrSEJkQUJqbW1IL29ENm1CWnd4TDgxSDhmYzNKeGJwOHBpMUlHRURueWd1STdoQwpOZVZVbFRUVU95R0NQK1VRRG9oZUxxSjNoRnQrdFRBc2o1THRsY2ZhT280bkhrMjNpQlNCYmN0dnVibEphZzY5Cm1JaUFHbldYT2xPOVpPTVgzc205cmxJSFNoVVhPd1NwUEJJcW13WVl1RENydy9lSElwdTdiU3JhWGRveVM1WDUKdTBkTitLUldoc1cybk5mUmxtejZ6Z1dJUkM2WXoxUklxUnpvQUZ1RUdlSkJVSGRpUGNRR2lXc01hdzRUV1I0RwpqVEUwL2IyL3hVT04wUThXOGI3d2VnNUl6SXJYVmVVT0NwWWpVaUc0clJXcWVWS0ZCR3NNQVdYTDlUdVIyS0E9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://47.93.201.241:6443
name: nh2tzzl
contexts:
- context:
cluster: nh2tzzl
namespace: nh2tzzl
user: nocalhost-dev-account
name: nh2tzzl
current-context: nh2tzzl
kind: Config
preferences: {}
users:
- name: nocalhost-dev-account
user:
token: eyJhbGciOiJSUzI1NiIsImtpZCI6IlZnRzNrVUJZdVZUWWpZeExENjdTV1k5Yk03Z0F0WWQ4dFZENlpJc2dROHcifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJuaDJ0enpsIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im5vY2FsaG9zdC1kZXYtYWNjb3VudC10b2tlbi1xdjdnbSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJub2NhbGhvc3QtZGV2LWFjY291bnQiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiJiMzA5MGZmNi1lNDRiLTQ0NmUtYTUxZC03YmVkYTRiOWY3MTEiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6bmgydHp6bDpub2NhbGhvc3QtZGV2LWFjY291bnQifQ.FlZ0T6tuc5WqnqvvsVz4JAn8CIFhpt3djN3URbNPPltuvFO0cuNkDXsaCcwiUAPmrNKmKmhV6-6KYDzwvvKRALkXL24HTtsLv-IQZR1nJHyfgvHuJYsd-3kEbHF-4Ovl0Vk7qaJsWGqvZTMvCSFa43-LkgCViZuXRpRz4UR_tTG5-3Ddz29pC1R5Z2Kl52_J8WwXzXu7jewyk9OgzHavmkBLZujQ0S_p6Z6sGh3ntT9G71nlhUTgxA8JWZYqpl3mZ2gbHD2VjNVAElFiRmPjvnILjrbzgDJqhhGJdb3bDpC21_ObZEUDqs55seoBDZzJvnvW2X3gfhI5Gie6HzbRkQ
',0,0,'{"space_req_mem":"","space_req_cpu":"","space_limits_mem":"","space_limits_cpu":"","space_lb_count":"","space_pvc_count":"","space_storage_capacity":"","space_ephemeral_storage":"","container_req_mem":"","container_req_cpu":"","container_limits_mem":"","container_limits_cpu":"","container_ephemeral_storage":""}','nh2tzzl','2021-03-06 17:18:54','2021-03-06 17:18:54',NULL)
[0 rows affected or returned ]
(/opt/src/internal/nocalhost-api/repository/cluster_user/cluster_user_repo.go:123)
[2021-03-06 17:18:54] [0.04ms] SELECT `status` FROM `clusters_users`
[0 rows affected or returned ]
It seems that no data has been inserted into the maridb.
So what should I do?
I'm looking forward to your help
Environment:
Macos 10.15.5 (19F96)
or Windows 10
): Macos 10.14.6nchtl version
command): v0.2.9helm version
command): v3.2.4kubectl version
command): v1.18.8-aliyun.1项目使用 springboot 在 远程debug的时候Nocalhost的控制台输出是乱码采用如下yaml配置:
name: biz-module-base-v1
serviceType: deployment
containers:
- name: container-a24er4
dev:
gitUrl: ""
image: hub.fqi.com/nocalhost/java-dev:v1
shell: ""
workDir: ""
storageClass: managed-nfs-storage
resources: null
persistentVolumeDirs:
- path: /root/.m2
capacity: 10Gi
command:
run: []
debug:
- cd
- ./biz-module-base/biz-module-base-start
- '&&'
- mvn
- spring-boot:run
- -Dfile.encoding=UTF-8
- -Dspring-boot.run.jvmArguments="-Xdebug
- -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
debug:
remoteDebugPort: 5005
hotReload: false
sync:
type: sendReceive
filePattern: []
ignoreFilePattern: []
env: []
portForward: []
What happened: I create cluster from nocalhost web ui, then i add gcp kube config , it reported "KubeConfig parse error"
What you expected to happen: add gcp kubeconfig then add gcp cluster
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
Macos 10.15.5 (19F96)
or Windows 10
):nchtl version
command):helm version
command):kubectl version
command):i had connect k8s clusters, but when select [open Remote Terminal] Errors occurs:
Error occurs while loading service status
: Error while create default application: Application default.application - namespace default is installing
I haved set config:
command:
- "ls ./pom.xml && mvn spring-boot:run"
I want that when i start Develop ,the service is running by it self,But, when i started, it's only :
- command:
- /bin/sh
- -c
- tail -f /dev/null
how can i implement?
And can i speak Chinese?
nhctl init -n nocalhost
openshift V4
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xb7cae0]
goroutine 1 [running]:
nocalhost/pkg/nocalhost-api/pkg/log.Errorf(...)
/opt/src/pkg/nocalhost-api/pkg/log/logger.go:121
nocalhost/internal/nocalhost-api/model.openDB(0xc00038e508, 0x4, 0xc00038e550, 0x4, 0xc00025b420, 0x16, 0xc00038e440, 0x9, 0x3836218)
/opt/src/internal/nocalhost-api/model/init.go:53 +0x4c0
nocalhost/internal/nocalhost-api/model.Init(0x1944920)
/opt/src/internal/nocalhost-api/model/init.go:34 +0x14d
nocalhost/pkg/nocalhost-api/napp.New(0xc000158680, 0x17)
/opt/src/pkg/nocalhost-api/napp/app.go:62 +0x45
main.main()
/opt/src/cmd/nocalhost-api/nocalhost-api.go:74 +0x319
/usr/share/nginx/html/env.sh: line 2: can't create ./env.js: Permission denied
/usr/share/nginx/html/env.sh: line 8: can't create ./env.js: Permission denied
/usr/share/nginx/html/env.sh: line 9: can't create ./env.js: Permission denied
能否支持下离线安装 ? 因为有的公司情况是没有互联网办公,只能离线。 所以希望能够得到支持,非常感谢。
What happened:
如图点击 add cluster ,添加完成后,会提示 unable to connect
。 我查看日志,发现是读取ca.pem文件路径不对(以前第一次使用比较久以前的版本是可以的,现在忘了具体是哪个版本了),于是我通过paste as text
添加,这一步我修改了我的默认配置中的ca文件目录为绝对路径如/users/nero/.kube/ca.pem
,然后 连接成功了,但是k8s中的所有资源都不能正常加载。。。
如 我本身kubectl 可以正常使用:
我发现的问题:
add cluster
添加时,会存在ca.pem配置文件路径问题Environment:
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:23:52Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.10", GitCommit:"98d5dc5d36d34a7ee13368a7893dcb400ec4e566", GitTreeState:"clean", BuildDate:"2021-04-15T03:20:25Z", GoVersion:"go1.15.10", Compiler:"gc", Platform:"linux/amd64"}
hi, I notice that nocalhost is a software focus on "Build, test and debug applications directly inside Kubernetes". However, I notice that it contains deploy function which may also be used on prod environment.
So it can be used on prod env directly? or need a castrated version (without hot-reload)?
Looking forward to your reply, thanks
What happened:
See the picture:
Whether the windows defender let it go or not, it would always keep alerts.
Environment:
Macos 10.15.5 (19F96)
or Windows 10
): Windows 10nchtl version
command): maybe install by vscode?helm version
command): not yetkubectl version
command): cannot connect it.When I try to use cmd to install bookinfo application as your course, the installation pendding there as following, no errors throw out until I stop the process by self. Using vs code is the same. Did I miss some configurion? I use mini Kube locally.
The cmd I use: nhctl install bookinfo --kubeconfig ./config -u https://github.com/nocalhost/bookinfo.git
What happened
remote debug的时候经常会断开,提示"Debugger disconnected unexpectedly"。转发其他端口的时候也会突然断开连接,而且都是一起断开的。
How to reproduce it (as minimally and precisely as possible):
正常使用的时候就会出现
Anything else we need to know?:
找出了错误日志(虽然不知道有没有用
Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2345:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2345:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2345:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2345:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2345:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2345:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [DEBUG] try to send port-forward heartbeat to 56468 {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 54789:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 54789:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 2233:2233 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 2233:2233 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 51892:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 51892:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 52844:52844 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 52844:52844 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 55098:55098 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 55098:55098 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 55441:55441 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 55441:55441 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 55662:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 55662:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 55769:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 55769:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 55441:55441 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 55441:55441 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 55883:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 55883:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 56028:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 56028:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 55883:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 55883:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 55441:55441 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 55441:55441 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 56110:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 56110:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 56028:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 56028:2345 has been closed, do nothing {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 56110:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Closing Port-forward 56110:2345' {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 55441:55441 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Closing Port-forward 55441:55441' {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Port-forward 56468:2345 failed to create stream, try to reconnecting {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Closing Port-forward 56468:2345' {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 56468:2345 occurs errors {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 56110:2345 occurs errors {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Reconnecting after 30 seconds... {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Reconnecting after 30 seconds... {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [INFO] Port-forward 55441:55441 occurs errors {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:39 [WARN] Reconnecting after 30 seconds... {"PPID": "44702", "APP": "daemon-server", "PID": "44703"}
Jul 30 20:45:40 [DEBUG] Nocalhost Prepare successful, getting kubeconfig from /Users/shlande/.nh/intellij-plugin/kubeConfigs/ae4884cf-c761-4c3d-a95f-b7476b9649a9_config, namespace shining-dev {"PID": "47550", "PPID": "46355"}
Environment:
Macos 10.15.5 (19F96)
or Windows 10
):nchtl version
command):helm version
command):kubectl version
command):What would you like to be added:
sync:
which works like docker volume.
Why is this needed:
Our go.mod has some replace outside developing dir, we need there dir synced to cluster.
本地port-ward可以正常登录,但是使用ingress http地址报错,浏览器可以正常显示
可以了 打扰了!
因为网络限制,无法访问公网
The problem is "Daemon responses empty data to GetDaemonServerInfo", so the nocalhost is show the cluster is unable to connect,how to solve this problem? any idea
What happened:
I use a k3s cluster and want to install nocalhost. It doesn't work with nocalhost-api CrashLoopBackOff
.
The output of kubectl get pod -nnocalhost -owide
:
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
svclb-nocalhost-web-7nkvh 1/1 Running 0 73s 10.42.1.9 node-ccf0ed90 <none> <none>
svclb-nocalhost-web-fqms9 1/1 Running 0 73s 10.42.0.16 master-d39b1dd5 <none> <none>
svclb-nocalhost-web-77849 1/1 Running 0 73s 10.42.2.7 node-2ffe5da9 <none> <none>
nocalhost-web-6f8f65d48f-xvzwt 1/1 Running 0 73s 10.42.2.8 node-2ffe5da9 <none> <none>
nocalhost-api-7bdd895d99-tbthc 0/1 CrashLoopBackOff 3 73s 10.42.1.8 node-ccf0ed90 <none> <none>
The log of nocalhost-api pod:
# kubectl logs -f -nnocalhost nocalhost-api-7bdd895d99-tbthc
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xb7d260]
goroutine 1 [running]:
nocalhost/pkg/nocalhost-api/pkg/log.Errorf(...)
/opt/src/pkg/nocalhost-api/pkg/log/logger.go:121
nocalhost/internal/nocalhost-api/model.openDB(0xc000594118, 0x4, 0xc000594130, 0x4, 0xc000476460, 0x16, 0xc0005940f0, 0x9, 0xc00034fd80)
/opt/src/internal/nocalhost-api/model/init.go:53 +0x4c0
nocalhost/internal/nocalhost-api/model.Init(0x1959b60)
/opt/src/internal/nocalhost-api/model/init.go:34 +0x14d
nocalhost/pkg/nocalhost-api/napp.New(0xc0003cc340, 0x17)
/opt/src/pkg/nocalhost-api/napp/app.go:62 +0x4e
main.main()
/opt/src/cmd/nocalhost-api/nocalhost-api.go:74 +0x319
What you expected to happen:
nocalhost install successfully.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
My k3s cluster is using containerd instand of docker.
Environment:
Macos 10.15.5 (19F96)
or Windows 10
): ubuntu 18.04.5 LTSnchtl version
command): v0.2.1 (defe9f2)helm version
command):version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"}
kubectl version
command):Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.1", GitCommit:"c4d752765b3bbac2237bf87cf0b1c2e307844666", GitTreeState:"clean", BuildDate:"2020-12-23T02:22:53Z", GoVersion:"go1.15.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.3-k3s.2", GitCommit:"e7e6a3c4e9a7d80b87793612730d10a863a25980", GitTreeState:"clean", BuildDate:"2019-11-18T18:31:23Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
# kubectl get node
NAME STATUS ROLES AGE VERSION
node-2ffe5da9 Ready <none> 29h v1.16.3-k3s.2
node-ccf0ed90 Ready <none> 29h v1.16.3-k3s.2
master-d39b1dd5 Ready master 29h v1.16.3-k3s.2
What happened:
root@node-10-120-13-236:# kubectl get pods# kubectl get sts
NAME READY STATUS RESTARTS AGE
nocalhost-api-94f88f48d-z2wr6 0/1 CrashLoopBackOff 124 7h56m
nocalhost-web-6d54b86ddb-g4nf6 1/1 Running 211 23h
root@node-10-120-13-236:
NAME READY AGE
nocalhost-mariadb 0/1 23h
root@node-10-120-13-236:~# kubectl describe pod nocalhost-api-94f88f48d-z2wr6
Name: nocalhost-api-94f88f48d-z2wr6
Namespace: default
Priority: 0
Node: node-10-120-127-235/10.120.127.235
Start Time: Fri, 15 Jan 2021 04:26:35 +0100
Labels: app=nocalhost-api
pod-template-hash=94f88f48d
Annotations: cni.projectcalico.org/podIP: 192.168.56.155/32
cni.projectcalico.org/podIPs: 192.168.56.155/32
Status: Running
IP: 192.168.56.155
IPs:
IP: 192.168.56.155
Controlled By: ReplicaSet/nocalhost-api-94f88f48d
Containers:
nocalhost-api:
Container ID: containerd://d72741a10e4d9e0beeef7e17fb1dd9f9c059a793331fb84b973d1adfc5524ff2
Image: codingcorp-docker.pkg.coding.net/nocalhost/public/nocalhost-api:latest
Image ID: codingcorp-docker.pkg.coding.net/nocalhost/public/nocalhost-api@sha256:d1207ea057cfdb2a836d1dc8a8156dd11a0f9980999ee795d406417e48a4c5bf
Port: 8080/TCP
Host Port: 0/TCP
Command:
/app/nocalhost-api
-c
/app/config/config.yaml
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: Error
Exit Code: 2
Started: Fri, 15 Jan 2021 12:20:27 +0100
Finished: Fri, 15 Jan 2021 12:20:38 +0100
Ready: False
Restart Count: 124
Requests:
cpu: 100m
memory: 256Mi
Liveness: http-get http://:http/health delay=0s timeout=1s period=10s #success=1 #failure=3
Readiness: http-get http://:http/health delay=0s timeout=1s period=10s #success=1 #failure=3
Environment:
Mounts:
/app/config from config-volume (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kh7w4 (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
config-volume:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: nocalhost-api-config
Optional: false
default-token-kh7w4:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-kh7w4
Optional: false
QoS Class: Burstable
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
Normal Pulled 57m (x111 over 7h57m) kubelet Successfully pulled image "codingcorp-docker.pkg.coding.net/nocalhost/public/nocalhost-api:latest"
Normal Pulling 52m (x112 over 7h57m) kubelet Pulling image "codingcorp-docker.pkg.coding.net/nocalhost/public/nocalhost-api:latest"
Warning BackOff 2m32s (x2150 over 7h56m) kubelet Back-off restarting failed container
root@node-10-120-13-236:~# kubectl logs nocalhost-api-94f88f48d-z2wr6
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xb7cae0]
goroutine 1 [running]:
nocalhost/pkg/nocalhost-api/pkg/log.Errorf(...)
/opt/src/pkg/nocalhost-api/pkg/log/logger.go:121
nocalhost/internal/nocalhost-api/model.openDB(0xc0004e4ae8, 0x4, 0xc0004e4b60, 0x4, 0xc00033b740, 0x16, 0xc0004e4a40, 0x9, 0xc000429d50)
/opt/src/internal/nocalhost-api/model/init.go:53 +0x4c0
nocalhost/internal/nocalhost-api/model.Init(0x1947140)
/opt/src/internal/nocalhost-api/model/init.go:34 +0x14d
nocalhost/pkg/nocalhost-api/napp.New(0xc0000c2340, 0x17)
/opt/src/pkg/nocalhost-api/napp/app.go:62 +0x4e
main.main()
/opt/src/cmd/nocalhost-api/nocalhost-api.go:73 +0x319
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
Macos 10.15.5 (19F96)
or Windows 10
):ubuntu 18.04
nchtl version
command):v0.2.4
codingcorp-docker.pkg.coding.net/nocalhost/public/nocalhost-web:latest
helm version
command):kubectl version
command):What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
Macos 10.15.5 (19F96)
or Windows 10
):nchtl version
command):helm version
command):kubectl version
command):What happened:
config.yaml not work
What you expected to happen:
config use v2
and config.yaml has image and workDir
but
How to reproduce it (as minimally and precisely as possible):
my config.yaml
application:
name: java
manifestType: rawManifest
resourcePath: ["manifest"]
ignoredPath: []
env:
- name: spring_name
value: demo
services:
- name: java_service
serviceType: deployment
dependLabelSelector: {}
containers:
- name: java
install:
env:
- name: containers_install_maven
value: "yes"
portForward:
- 10080:8080
dev:
gitUrl: ""
image: maven:3.8.1-jdk-8
shell: "/bin/sh"
workDir: "/zhaoliwei/nocalhost-dev"
Anything else we need to know?:
Environment:
-Windows 10:
如题
What would you like to be added:
When I read the website documents( like this), the characters on pictures are so small to read. I need to right click the picture and open it in a new tab. If it is possible to zoom in pictures with just one left click?
Why is this needed:
People who are interested in this project can read it more convenient.
What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
Macos 10.15.5 (19F96)
or Windows 10
):nchtl version
command):helm version
command):kubectl version
command):点小火箭的时候, 提示这个
Installing application: test2
cmd: nhctl install test2 -u https://github.com/haozi23333/hello-nocaltest -t rawManifest --resource-path .manifest/templates --kubeconfig /Users/haozi/.nh/plugin/kubeConfigs/3_2_config
Installing application...
[git clone --depth 1 https://github.com/haozi23333/hello-nocaltest /Users/haozi/.nh/nhctl/application/test2/resources]
Cloning into '/Users/haozi/.nh/nhctl/application/test2/resources'...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x23b734a]
goroutine 1 [running]:
nocalhost/internal/nhctl/app.(*Application).InitConfig(0xc00036f920, 0x0, 0x0, 0x0, 0x0, 0x0
, 0x0)
/home/runner/work/nocalhost/nocalhost/internal/nhctl/app/application.go:229 +0x6a
nocalhost/cmd/nhctl/cmds.InstallApplication(0x7ffeefbff73e, 0x5, 0x1, 0x27cd887)
/home/runner/work/nocalhost/nocalhost/cmd/nhctl/cmds/install.go:138 +0x117
nocalhost/cmd/nhctl/cmds.glob..func28(0x3581860, 0xc000528120, 0x1, 0x9)
/home/runner/work/nocalhost/nocalhost/cmd/nhctl/cmds/install.go:100 +0x185
github.com/spf13/cobra.(*Command).execute(0x3581860, 0xc000528090, 0x9, 0x9, 0x3581860, 0xc000528090)
/home/runner/work/nocalhost/nocalhost/vendor/github.com/spf13/cobra/command.go:846 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x3582ac0, 0xc000b3ff10, 0x1, 0x1)
/home/runner/work/nocalhost/nocalhost/vendor/github.com/spf13/cobra/command.go:950 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/work/nocalhost/nocalhost/vendor/github.com/spf13/cobra/command.go:887
nocalhost/cmd/nhctl/cmds.Execute()
/home/runner/work/nocalhost/nocalhost/cmd/nhctl/cmds/root.go:69 +0x5a
main.main()
/home/runner/work/nocalhost/nocalhost/cmd/nhctl/nhctl.go:22 +0x25
system Macos 10.15.5 (19F96)
nhctl: Nocalhost CLI
Version: v0.2.1
Branch: HEAD
Git commit: defe9f2
Built time: Tue Jan 5 12:10:36 2021
Built OS/Arch: darwin/amd64
Built Go version: go1.15.6
helm version
version.BuildInfo{Version:"v3.4.2", GitCommit:"23dd3af5e19a02d4f4baa5b2f242645a1a3af629", GitTreeState:"dirty", GoVersion:"go1.15.5"}
kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-16T00:04:31Z", GoVersion:"go1.14.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.11", GitCommit:"ea5f00d93211b7c80247bf607cfa422ad6fb5347", GitTreeState:"clean", BuildDate:"2020-08-13T15:11:47Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
support configmap to save service.json
i saw every cli commad has [Name] options , what's this?
example nhctl dev associate [Name] [flags]
What happened:
error windows above appear
What you expected to happen:
work nornal
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
GoLand 2021.2.2
Build #GO-212.5080.74, built on August 31, 2021
Runtime version: 11.0.11+9-b1504.16 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2022M
Cores: 8
Registry: suggest.all.run.configurations.from.context=true, ide.completion.variant.limit=500, go.run.processes.with.pty=false
Non-Bundled Plugins: dev.nocalhost.nocalhost-intellij-plugin (0.5.9-212)
This is a tracker for those who have issues using Nocalhost in Mac M1. If you run into any scenarios that don’t work quite right for you, please file an issue on GitHub so we can investigate.
e.g. Mac OS 11.5.2, Nocalhost 0.5.1
e.g VS Code 1.59.1 (Universal), IDEA 2021.2
e.g Takes 5 minutes to load the cluster list in VS Code.
记录在 Mac M1 中使用 Nocalhost 遇到的问题 。 如果您有任何问题,请告诉我们:
例如 Mac OS 11.5.2,Nocalhost 0.5.1
例如 VS Code 1.59.1(通用)、IDEA 2021.2
例如,在 VS Code 中加载集群列表需要 5 分钟。
What happened:
My app workload type is statefulset. I use goland and nocalhost plugin to start remote dev. When I click the button "Run"(nocalhost run config), the comand is like "nhctl exec test --deployment test-my-operator --controller-type statefulset --command /bin/zsh --command -c --command "go run cmd/my-operator/ma
in.go" --kubeconfig ~/.nh/intellij-plugin/kubeConfigs/d9ca5ba8-5a30-4dec-a2c9-d8ba313f0218_config --namespace default ",and the return error is " deployments.apps "test-my-operator" not found"
What you expected to happen:
No error returned.
How to reproduce it (as minimally and precisely as possible):
App workload type is statefulset and start remote dev by click "Run"(run configured as nocalhost need)
Anything else we need to know?:
The func ListPodsByDeployment only handle deployment resource.
Environment:
Macos 10.15.5 (19F96)
or Windows 10
): macOS 11.5.1nchtl version
command): 0.5.1(0.5.4 is also the same)helm version
command): nonekubectl version
command):What happened:
Cannot access gke cluster from VSCode
What you expected to happen:
Add GKE cluster as normal
How to reproduce it (as minimally and precisely as possible):
Use existing GKE kubeconfig (use GCP as auth provider)
Anything else we need to know?:
The GKE cluster is working in "kubernetes" extension in VSCODE.
When added in nocalhost, it's showing
Environment:
Macos 10.15.5 (19F96)
or Windows 10
): Macos 12.0.1 (21A559)nchtl version
command): not installed, probably installed by extension, but cannot find it from PATHhelm version
command): (I didn't use helm chart install anything) version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"dirty", GoVersion:"go1.16.3"}kubectl version
command):After I installed it, I found that the default password for nocalhost's web interface could not be logged in.
I'm using a helm installation. Profiles are default.
helm install nocalhost-server ./nocalhost/deployments/chart
use account/password [email protected]/123456 ,Mail or password is incorrect
What would you like to be added:
Generate the default password for nocalhost's web interface after installation.
Why is this needed:
The default password for nocalhost's web interface is 123456 which seems not secure.
From a python developer's best wishes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.