摘要:vscode远程连接服务器出现Bad owner or permissions on C:\\Users\USER\.ssh/config 过程试图写入的管道不存在, 原因是vscode的remotoe-ssh改写了.config 后,此文件的权限发生了变化,此时不仅在vscode中没权限使用con
阅读全文
摘要:直接下载一个二级制,然后解压到/usr/local下就行: 下载地址: https://github.com/helm/helm/releases Download your desired version Unpack it (tar -zxvf helm-v3.0.0-linux-amd64.t
阅读全文
摘要:1、在go/src下创建一个test-builder文件夹,注意文件夹名中不能用下划线 go/src/test-kubebuilder 2、 kubebuilder init --domain test.io 3、 kubebuilder create api --group testnew --v
阅读全文
摘要:.bashrc是以来.profile生效的,所以在.$HOME下需要创建一个.profile文件内容如下: # ~/.profile: executed by the command interpreter for login shells. # This file is not read by b
阅读全文
摘要:安装go: yum install epel-release yum install golang 设置环境变量: vim /etc/profile export GOROOT=/usr/local/go export GOPATH=you code path source /etc/profile
阅读全文
摘要:普通用户, 这是下载时卡住了,网络原因一直下不下来,此时我们可以本地下载后,再传上去 ls /home/test/.vscode-server/bin/f80445acd5a3da24aa209168452a3d97cc32(一串很的东西,这里叫做commit_id吧)/vscode-servlet
阅读全文
摘要:update方法: 创建和更新方法: func Create() { namespace := "wm" restConfig, err := clientcmd.BuildConfigFromFlags("", "/home/wm/config") if err != nil { return }
阅读全文
摘要:在 vGPU 模式下,GPU 上的内存是静态分区的,但计算能力在共享 GPU 的 VM 之间分时共享。在这种模式下,当虚拟机在 GPU 上运行时,它“拥有” GPU 的所有计算能力,但只能访问其共享的 GPU 内存。 在 MIG 模式下,内存和计算能力是静态划分的。当 VM 在 MIG 模式下使用
阅读全文