Code Monkey home page Code Monkey logo

nocalhost's Introduction

CII Best Practices

All Contributors

api-docker nhctl Go Report Card LICENSE FOSSA Status

Cloud Studio Template


Most productive way to build cloud-native applications.

Nocalhost

The term Nocalhost originates from No Local, which is a cloud-native development tool based on IDE, provides realtime cloud native application developing experience.

When developing cloud-based application in Nocalhost, any code changes can immediately take effects in remote side, and there is no need to rebuild a new image. This can shorten the entire development feedback loops and massively improve R&D efficiency.

In order to give you a better understanding of Nocalhost, it is recommended that you read our blog post Nocalhost - Refine Cloud Native Dev Environment

Nocalhost

Key Features

IDE Supports

Nocalhost provides easy-to-use IDE extension for JetBrains and VSCode. These extension will enable developer to develop and debug cloud-based application in their local machine.

Start cloud-native application development in one click

No need to config complex dev environments in your local machine anymore. Nocalhost helps you to connect to any Kubernetes environment in one click.

See code change under a second

automatically synchronize the code to container every time you make a change. Nocalhost eliminate the submit, building and pushing cycles, significantly speed up the feedback loop of development, so you see change in under a second.

Isolated development space

Every team member can enjoy their own independent development space to ensure that they are not disturbed by others.

Getting Started

Documentation

Full documentation is available on the Nocalhost

Community

  • Meeting: Google Doc
  • Slack(English): CNCF Slack #nocalhost channel
  • WeChat(Chinese): Scan the QR Code to add CODING assistance with note "Nocalhost", assistance will add you into our WeChat group

nocal-host-wechat

Talks and Conferences

Engagement Link
📹   Nocalhost Youtube https://www.youtube.com/channel/UC2QC6HvFG8zOtFRvvMzcAUw

Check our Changelogs

Contributing

Check out CONTRIBUTING to see how to develop with Nocalhost.

Code of Conduct

Nocalhost adopts CNCF Code of Conduct

License

Nocalhost is Apache 2.0 licensed

FOSSA Status

Roadmap

See ROADMAP

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Anur

🚧

Qi Zhang

📝

mouuii

🔌 🤔

This project follows the all-contributors specification. Contributions of any kind welcome!

Sponsors


He3.App


CODING

nocalhost's People

Contributors

allcontributors[bot] avatar anurnomeru avatar archfish avatar arugal avatar coding-wangwei avatar dependabot[bot] avatar eltociear avatar fatjyc avatar fcharlie avatar foolwc avatar fossabot avatar liangguangming avatar lyzhang1999 avatar miliguo avatar mingkevan avatar mingshun avatar mouuii avatar neaped avatar ovaldi avatar secondes avatar shy-xu avatar svcdzt avatar thinkhp avatar vegazmaoning avatar wencaiwulue avatar wenxue202012 avatar woodgear avatar xinxinh2020 avatar yuyicai avatar zhangjian10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nocalhost's Issues

IDEA can not open Remote terminal

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

这是我提的 issue

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • OS (e.g: Macos 10.15.5 (19F96) or Windows 10):
  • nhctl version (use nchtl version command):
  • helm version (use helm version command):
  • kubectl version (use kubectl version command):
  • Others:

error occur with message "download nhctl error"

image

What happened:
error windows above appear

What you expected to happen:
work nornal

How to reproduce it (as minimally and precisely as possible):

  1. goland with no nocalost installed
  2. from the plugin entry, install nocalhost
  3. restart golang
  4. on the start golang, you will see the error window

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)

sync: can sync outside project scope with mapping

What would you like to be added:
sync:

  • "../xxx-lib" to "../xxx-lib"

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.

Cannot add gke cluster in nocalhost extension: no auth provider found for name gcp

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
image

Environment:

  • OS (e.g: Macos 10.15.5 (19F96) or Windows 10): Macos 12.0.1 (21A559)
  • nhctl version (use nchtl version command): not installed, probably installed by extension, but cannot find it from PATH
  • helm version (use helm 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 (use kubectl version command):
    Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.4", GitCommit:"b695d79d4f967c403a96986f1750a35eb75e75f1", GitTreeState:"clean", BuildDate:"2021-11-17T15:41:42Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"darwin/amd64"}
    Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3-gke.2003", GitCommit:"b6a837065c60b193d0d31a818a0d52718b3bbcd1", GitTreeState:"clean", BuildDate:"2021-10-21T21:32:02Z", GoVersion:"go1.16.6b7", Compiler:"gc", Platform:"linux/amd64"}
  • Others:
    VSCode: Version: 1.62.3
    Commit: ccbaa2d27e38e5afa3e5c21c1c7bef4657064247
    Date: 2021-11-17T07:59:13.865Z (2 wks ago)
    Electron: 13.5.2
    Chrome: 91.0.4472.164
    Node.js: 14.16.0
    V8: 9.1.269.39-electron.0
    OS: Darwin x64 21.1.0

Failed to create space in Web console

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 ]

image

It seems that no data has been inserted into the maridb.

So what should I do?
I'm looking forward to your help

Environment:

  • OS (e.g: Macos 10.15.5 (19F96) or Windows 10): Macos 10.14.6
  • nhctl version (use nchtl version command): v0.2.9
  • helm version (use helm version command): v3.2.4
  • kubectl version (use kubectl version command): v1.18.8-aliyun.1
  • Chart version : version: 0.1.0

nhctl install error: runtime error: invalid memory address or nil pointer dereference

点小火箭的时候, 提示这个

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"}

Remote Debug is beening in Waiting pod to start...

我的开发工具是IntelliJ Idea,使用了nocalhost来调试远程k8s上的应用,点击了Remote Debug以后,控制台输出日志,显示一直处于Waiting pod to start...,Dev Config是参照文档中配置的,配置是
image

debug.sh配置是
image

控制台日志是
image
这是什么问题呢?

install nocalhost ,got error

What happened:
root@node-10-120-13-236:# kubectl get pods
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:
# kubectl get sts
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:

  • OS (e.g: Macos 10.15.5 (19F96) or Windows 10):

ubuntu 18.04

  • nhctl version (use nchtl version command):

v0.2.4

codingcorp-docker.pkg.coding.net/nocalhost/public/nocalhost-web:latest

  • helm version (use helm version command):
  • kubectl version (use kubectl version command):
  • Others:

test

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • OS (e.g: Macos 10.15.5 (19F96) or Windows 10):
  • nhctl version (use nchtl version command):
  • helm version (use helm version command):
  • kubectl version (use kubectl version command):
  • Others:

JAVA IDEA 使用 Remote Debug 控制台输出 乱码问题

项目使用 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: []

command not support?

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?

[Feature] Integrate OAM concepts with IDE and Dashboard

Currently, the KubeVela integration with Nocalhost can be done via the nocalhost trait. Here is a live demo.

Problem with IDE

But after the KubeVela app is deployed, its structure looks like following in IDE:

20211208153244

To make the integration more KubeVela native, we should expose OAM concepts to users, e.g. Component/Trait.

Problem with Dashboard

The dashboard will display the application deployments. But it doesn't support OAM-type application:

20211208153601

To make the integration more KubeVela native, we can add a OAM type.

website documents' pictures can be zoomed in

image

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.

nocalhost can not be installed successfully on k3s

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:

  • OS (e.g: Macos 10.15.5 (19F96) or Windows 10): ubuntu 18.04.5 LTS
  • nhctl version (use nchtl version command): v0.2.1 (defe9f2)
  • helm version (use helm version command):
version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"}
  • kubectl version (use 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"}
  • Others:
# 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

vscode nocalhost 不能正常使用

What happened:
image
如图点击 add cluster ,添加完成后,会提示 unable to connect。 我查看日志,发现是读取ca.pem文件路径不对(以前第一次使用比较久以前的版本是可以的,现在忘了具体是哪个版本了),于是我通过paste as text 添加,这一步我修改了我的默认配置中的ca文件目录为绝对路径如/users/nero/.kube/ca.pem,然后 连接成功了,但是k8s中的所有资源都不能正常加载。。。
image
如 我本身kubectl 可以正常使用:
image

我发现的问题:

  1. add cluster 添加时,会存在ca.pem配置文件路径问题
  2. 不知道啥原因,连接上k8s api server后,功能使用异常

Environment:

  • Macos 11.4 (20F71)
  • nhctl version v0.5.1
  • kubectl version

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"}

Can nocalhost be used on product environment?

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

[Port-Forward] 连接经常中断

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:

  • OS (e.g: Macos 10.15.5 (19F96) or Windows 10):
    Macos 12 beta4 (M1)
  • nhctl version (use nchtl version command):
    0.4.18
  • helm version (use helm version command):
    version.BuildInfo{Version:"v3.6.3", GitCommit:"d506314abfb5d21419df8c7e7e68012379db2354", GitTreeState:"clean", GoVersion:"go1.16.5"}
  • kubectl version (use kubectl version command):
    Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe34773c74f79527be4afd95bf39", GitTreeState:"clean", BuildDate:"2021-07-15T21:04:39Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.0", GitCommit:"cb303e613a121a29364f75cc67d3d580833a7479", GitTreeState:"clean", BuildDate:"2021-04-08T16:25:06Z", GoVersion:"go1.16.1", Compiler:"gc", Platform:"linux/amd64"}
  • Others:
    貌似官方文档里面说了还不支持m1,是不是这个原因?

Generate default password instead of 123456

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.

nhctl init error

Error

step

nhctl init -n nocalhost

env

openshift V4

Err 1: nocalhost-api

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

Err 2: nocalhost-web

/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

nocalhost default password is

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

error occurred when [Step 2: Install nocalhost server with helm]

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?

config.yaml application.services containers.dev.image and workDir not work

What happened:
config.yaml not work
What you expected to happen:
config use v2
and config.yaml has image and workDir
but
image

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?:
image

Environment:
-Windows 10:

  • nhctl version : v0.4.6
  • helm version :"v3.6.0
  • kubectl version : v1.21.0
  • Others:

Unable to install

What happened:
无法完成vscode 的 application的install, 本地已安装nhctl,config.yaml用的官网模板也已经添加到了项目根目录,集群已配置,请问还有什么需要配置的
image
image
image
Environment:
win10

nhctl exec don't support app deployed as statefulset

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:

  • OS (e.g: Macos 10.15.5 (19F96) or Windows 10): macOS 11.5.1
  • nhctl version (use nchtl version command): 0.5.1(0.5.4 is also the same)
  • helm version (use helm version command): none
  • kubectl version (use kubectl version command):
  • Others: nocalhost plugin version 0.5.1-211
  • IDE: GoLand 2021-01

what's the [name] mean

i saw every cli commad has [Name] options , what's this?
example nhctl dev associate [Name] [flags]

On M1 Macs: Issues Tracker with Apple Silicon / Mac M1 问题跟踪

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.

Mac OS and Nocalhost

e.g. Mac OS 11.5.2, Nocalhost 0.5.1

IDE

e.g VS Code 1.59.1 (Universal), IDEA 2021.2

Problem Description

e.g Takes 5 minutes to load the cluster list in VS Code.


记录在 Mac M1 中使用 Nocalhost 遇到的问题 。 如果您有任何问题,请告诉我们:

Mac OS 和 Nocalhost 的版本

例如 Mac OS 11.5.2,Nocalhost 0.5.1

集成开发环境和其版本

例如 VS Code 1.59.1(通用)、IDEA 2021.2

问题描述

例如,在 VS Code 中加载集群列表需要 5 分钟。

nocalhost kubeconfig not support gcp

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:

  • OS (e.g: Macos 10.15.5 (19F96) or Windows 10):
  • nhctl version (use nchtl version command):
  • helm version (use helm version command):
  • kubectl version (use kubectl version command):
  • Others:

why windows defender keeping alert ?

What happened:
See the picture:

image

Whether the windows defender let it go or not, it would always keep alerts.

image

Environment:

  • OS (e.g: Macos 10.15.5 (19F96) or Windows 10): Windows 10
  • nhctl version (use nchtl version command): maybe install by vscode?
  • helm version (use helm version command): not yet
  • kubectl version (use kubectl version command): cannot connect it.
  • Others:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.