Vagrant,虚拟机操作系统:ubuntu/bionic64,禁用交换
库伯内特版本:1.18.0
基础设施:1个haproxy节点,3个外部etcd节点和3个kubernetes主节点
尝试:尝试设置 ha rancher,所以我首先按照官方文档使用 kubeadm 设置 ha kubernetes 集群
预期行为:所有 k8s 组件均已启动,并且能够导航到 weave 范围以查看所有节点
实际行为:即使在安装 CNI (Weave Net) 后,CoreDNS 仍未准备好,因此除非网络正常工作(weave net 和 coredns),否则 weave 范围(漂亮的可视化 ui)无法工作。
# kubeadm config
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
kubernetesVersion: stable
controlPlaneEndpoint: "172.16.0.30:6443"
etcd:
external:
caFile: /etc/rancher-certs/ca-chain.cert.pem
keyFile: /etc/rancher-certs/etcd.key.pem
certFile: /etc/rancher-certs/etcd.cert.pem
endpoints:
- https://172.16.0.20:2379
- https://172.16.0.21:2379
- https://172.16.0.22:2379
-------------------------------------------------------------------------------
# firewall
vagrant@rancher-0:~$ sudo ufw status
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
Anywhere ALLOW 172.16.0.0/26
OpenSSH …Run Code Online (Sandbox Code Playgroud) 我只是从 Netbeans 切换到 Visual Studio 代码,但无法调试 c++,错误是Unable to start debugging. Launch options string provided by the project system is invalid. Unable to determine path.... 我试图遵循我从谷歌搜索的 Visual Studio 代码网站上的 c/c++ 调试指南,但它无法运行该应用程序,但我可以从中编译 c++,Ctrl + Shift + B所以我的 task.json 文件是正确的,所以这是我的任务。 json 文件和 launch.json 文件。
{
//Task.json
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "g++",
"isShellCommand": true,
"args": ["-pipe", "-std=c++14", "${fileBasename}", "-lm"],
"showOutput": "always"
}
Run Code Online (Sandbox Code Playgroud)
//Launch.json
"version": "0.2.0",
"configurations": [
{
"name": "C++ …Run Code Online (Sandbox Code Playgroud)