
Kubernetes 实用指南
文章平均质量分 58
Kubernetes 容器云平台实用知识手册
shida_csdn
Keep Running ...
展开
-
使用 Telepresence 2 本地调试(开发)Kubernetes 应用
Telepresence 2 可以形象地比喻为: Kubernetes 项目开发的瑞士军刀!它能够将你的本地环境和远程的 Kubernetes 集群打通,让你的本地应用就像运行在集群内的 Pod 一样访问集群内的其他服务以及被集群内的其他服务访问。Telepresence 2 会在远端集群中运行一个 agent 程序,同时修改本地的网络设置,通过一个加密隧道转发你本地计算机和远端集群的流量,让你的本地计算机就像运行在集群内的 Pod 一样,能够访问集群内的其他服务(无论是通过 Service 域名还是直原创 2021-10-21 11:05:40 · 1866 阅读 · 0 评论 -
手工绑定 Kubernetes PVC 和 PV
背景一般而言,用户只需要声明 PVC,Kubernetes 的 StorageClass 就能动态帮我们创建 PV 并绑定了。但有时候我们希望为 PVC 绑定我们手动创建的 PV,这时候就需要一些手工介入了。步骤只需要在 PVC 声明时,将绑定字段 volumeName 预填好就行了,想绑谁帮谁,是不是很简单呢!apiVersion: v1kind: PersistentVolumemetadata: name: example-pvspec: capacity: storag原创 2020-12-29 20:13:33 · 1651 阅读 · 0 评论 -
Kubernetes 安装 local-path-storage
安装 local-path-storage# kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yamlnamespace/local-path-storage createdserviceaccount/local-path-provisioner-service-account createdclusterrol.原创 2020-10-25 17:26:39 · 2911 阅读 · 1 评论 -
centos 7 基于 containerd 运行 Kubernetes 集群
1. 安装 containerd# yum install -y yum-utils# yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo# yum install containerd -y2. 初始化 containerd 配置# containerd config default > /etc/containerd/config.toml#原创 2020-09-05 14:48:34 · 2702 阅读 · 0 评论 -
本地编译执行 Kubernetes e2e 测试
一、Kubernetes e2e 测试简介Kubernetes e2e(end-to-end) 测试是单元测试和集成测试的补充,其主要目标是确保 Kubernetes 行为的一致可靠,并在单元和集成测试不足时,在用户真正使用软件之前捕获难以测试的 Bug。Kubernetes e2e 测试基于 Ginkgo 和 Gomega 实现。二、在本地运行 Kubernetes e2e 测试要在本地运行 e2e 测试,方法有很多,官方建议基于 kubetest 启动,但相对来说环境要求较高。本文介绍一种比较简单原创 2020-07-09 12:38:11 · 3211 阅读 · 0 评论 -
配置 kube-proxy 基于 ipvs 模式工作
引言kube-proxy 目前(v1.17)支持多种工作模式,如:userspace、iptables、ipvs,以及仅在 windows 环境可选的 kernelspace 等。在 linux 环境,未配置 kube-proxy 工作模式的情况下,将优先使用 iptables 模式运行,在不满足 iptables 模式工作条件时,自动回退到 userspace 模式。在 windows 环境,...原创 2020-01-21 10:44:59 · 2039 阅读 · 1 评论 -
Kubernetes 资源配额和资源限制管理
引言在 Kubernetes 体系中,资源默认是被多租户共享使用的,租户间不可避免地存在资源竞争问题。为了满足不同租户多样的服务质量需求,集群管理员需要为租户设置非常精细的资源配额以及资源限制。截止 1.14 版本,Kubernetes 已经支持分别从 Namespace、Pod 和 Container 三个级别对资源进行管理。ResourceQuota - 配置 Namespace 资源...原创 2019-03-27 11:52:21 · 1571 阅读 · 0 评论