摘要:iptables iptables的方式则是利用了linux的iptables的nat转发进行实现。在本例中,创建了名为mysql-service的service。 apiVersion: v1 kind: Service metadata: labels: name: mysql role: se
阅读全文
摘要:Kubernetes 提供了一个 DNS 插件 Service,它使用 skydns 自动为其它 Service 指派 DNS 名字。 如果它在集群中处于运行状态,可以通过如下命令来检查: root@ubuntu:~# kubectl get services kube-dns --namespac
阅读全文
摘要:dialing dial unix /var/run/antrea/cni.sock: connect: connection refused Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set
阅读全文
摘要:root@ubuntu:~# nsenter -n --target 27134 root@ubuntu:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 10
阅读全文
摘要:master ubuntu 10.10.1682 woker cloud 10.10.16.47 root@cloud:~# apt-get install -y kubeadm-1.18.1 kubectl-1.18.1 Reading package lists... Done Building
阅读全文
摘要:client root@cloud:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00
阅读全文
摘要:root@ubuntu:~# kubectl get pod NAME READY STATUS RESTARTS AGE debian-6c44fc6956-ltsrt 0/1 CrashLoopBackOff 4615 16d mc1 2/2 Running 0 16d my-deploymen
阅读全文
摘要:环境描述 生产环境通过gitlab-running实现自动化发布业务,现需要收集客户端的真实ip,需要将externaltrafficpolicy改为lacal模式(原来是cluster模式),前天开发反映无法发布业务(镜像拉取不成功)。想到就改动过externaltrafficpolicy所以考虑
阅读全文
摘要:介绍 Kubernetes Services 是将运行在一组 Pod 上的应用程序公开为网络服务的抽象方法。这一组 Pod 能够被 Service 访问到,通常是通过 Labels 和 Selectors 实现的。 当客户端连接到 Kubernetes Service 时,连接会被负载均衡到支持服务
阅读全文
摘要:[root@cloud ~]# kubectl get pods NAME READY STATUS RESTARTS AGE nginx-deployment-c85df76f4-gj65j 1/1 Running 0 7d23h temperature-simulate-mapper-588ff
阅读全文
摘要:kubectl cordon pcl001-desktop [root@cloud temperature_yaml]# kubectl get nodes NAME STATUS ROLES AGE VERSION cloud Ready master 28d v1.18.6 edge-vm Re
阅读全文
摘要:[root@cloud temperature_yaml]# kubectl get pod -o wide | grep temperature | wc -l 278 [root@cloud temperature_yaml]# kubectl get pod -o wide | grep te
阅读全文
摘要:先设置变量: NS=cali VETH=v-cali 创建 netns 和 veth, veth 一端塞进去, 射 ip: ip netns add $NS ip l add $VETH type veth peer name $VETH-peer ip l set $VETH-peer up ip
阅读全文
摘要:[root@cloud crds]# cat model.yaml apiVersion: devices.kubeedge.io/v1alpha2 kind: DeviceModel metadata: name: temperature-model-simulate namespace: def
阅读全文
摘要:Understanding CNI (Container Networking Interface) https://github.com/containernetworking/cni 执行 kubectl apply -f https://raw.githubusercontent.com/co
阅读全文
摘要:root@ubuntu:~# kubectl logs antrea-busybox root@ubuntu:~# kubectl logs antrea-busybox --previous root@ubuntu:~# kubectl get pods NAME READY STATUS RES
阅读全文
摘要:暴露一个http服务的方式 service 是 k8s 暴露http服务的默认方式, 其中 NodePort 类型可以将http 服务暴露在宿主机的端口上,以便外部可以访问。 service模式的结构如下. service -> label selector -> pods 31217 -> app
阅读全文
摘要:Controller是什么 也就是「控制器」,控制Kubernetes的资源实体。怎么控制呢?通过监听资源变化事件。这个事件可能是用户发起的(他希望把资源从A状态更新到B状态),Controller就会获取这个事件并处理事件,即更新目标资源。Kubernetes默认有很多控制器,他们控制着Kuber
阅读全文
摘要:转载 luozhiyun的博客:https://www.luozhiyun.com Informer机制# 机制设计# Informer主要有两个作用: 通过一种叫作 ListAndWatch 的方法,把 APIServer 中的 API 对象缓存在了本地,并负责更新和维护这个缓存。ListAndW
阅读全文