首先打开 /etc/kubernetes/pki 目录,里面会有很多证书。 执行命令查看当前证书允许通过哪些地址访问 APIServer: openssl x509 -in apiserver.crt -noout -text|grep -A 2 'Alternative' 可以看到证书允许的[......] 继续阅读

2022年11月18日 0条评论 2616点热度 0人点赞 痴者工良 阅读全文

首先打开 /etc/kubernetes/pki 目录,里面会有很多证书。 执行命令查看当前证书允许通过哪些地址访问 APIServer: openssl x509 -in apiserver.crt -noout -text | grep -A 2 'Alternative' 可以看到证书[......] 继续阅读

2022年11月18日 0条评论 92点热度 0人点赞 痴者工良 阅读全文

package main import ( "context" "fmt" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/t[......]继续阅读

2022年11月13日 0条评论 1682点热度 0人点赞 痴者工良 阅读全文

package main import ( "context" "fmt" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes&q[......]继续阅读

2022年11月13日 0条评论 1734点热度 0人点赞 痴者工良 阅读全文

Fluentd 在 Kubernetes 下部署时,需要使用 fluentd-daemonset-elasticsearch-rbac.yaml 文件,里面配置了 RABC 权限等,但是启动起来后,查看 Fluentd 日志,发现 unread ,原因是日志位置的问题。 原版日志收集配置: [......]继续阅读

2022年11月9日 0条评论 2052点热度 0人点赞 痴者工良 阅读全文

Fluentd is deployed in Kubernetes using the fluentd-daemonset-elasticsearch-rbac.yaml file, which contains configurations for RBAC permissions, etc. H[......] 继续阅读

2022年11月9日 0条评论 2078点热度 0人点赞 痴者工良 阅读全文

我的 Elasticsearch 是单机部署的,因此要将 kubernetes Fluentd 接入 Elasticsearch,需要改点配置项。 首先是在 kubernetes 上安装 Fluentd。 下载 yaml 模板仓库: git clone https://github.com/flue[......]继续阅读

2022年10月20日 0条评论 2552点热度 0人点赞 痴者工良 阅读全文

My Elasticsearch is deployed on a single machine, so to connect Kubernetes Fluentd to Elasticsearch, I need to modify some configuration items. First,[......] 继续阅读

2022年10月20日 0条评论 104点热度 0人点赞 痴者工良 阅读全文

Kubernetes 日志 和 EFK 日志方案 本文主要参考以下两个文章,对文章内容进行翻译整合。 https://devopscube.com/kubernetes-logging-tutorial/ https://devopscube.com/setup-efk-stack-on-kuber[......] 继续阅读

2022年2月14日 0条评论 3114点热度 0人点赞 痴者工良 阅读全文

Kubernetes Logging and EFK Logging Solution This article mainly references the following two articles and integrates and translates their contents. ht[......] 继续阅读

2022年2月14日 0条评论 3112点热度 0人点赞 痴者工良 阅读全文

Kubernetes 监控 当你的应用部署到 Kubenetes 后,你很难看到容器内部发生了什么,一旦容器死掉,里面的数据可能就永远无法恢复,甚至无法查看日志以定位问题所在,何况一个应用可能存在很多个实例,用户的一个请求不指定被哪个容器处理了,这使得在 Kubernetes 中对应用进行故障排除较[......] 继续阅读

2022年2月13日 0条评论 2050点热度 0人点赞 痴者工良 阅读全文

Kubernetes Monitoring When your application is deployed to Kubernetes, it becomes challenging to see what is happening inside the containers. Once a c[......] 继续阅读

2022年2月13日 0条评论 2054点热度 0人点赞 痴者工良 阅读全文

写什么呢 前段时间使用 C# 写了个项目,使用 Kubernetes API Server,获取信息以及监控 Kubernetes 资源,然后结合 Neting 做 API 网关。 体验地址 http://neting.whuanle.cn:30080/ 账号 admin,密码 admin123 [......] 继续阅读

2022年1月24日 0条评论 2562点热度 2人点赞 痴者工良 阅读全文

What to Write Not long ago, I wrote a project using C#, which utilizes the Kubernetes API Server to retrieve information and monitor Kubernetes resour[......] 继续阅读

2022年1月24日 0条评论 94点热度 2人点赞 痴者工良 阅读全文

目录 Kubectl Command Overview Installing Kubernetes-Dashboard RESTful API Authentication Annotations Pod YAML Structure Configuration Kubectl Command[......] 继续阅读

2021年4月29日 1条评论 116点热度 0人点赞 痴者工良 阅读全文

目录 Kubectl 命令大全 安装 Kubernetes-Dashboard RESTful API 鉴权 注解 Pod YAML 结构 配置 Kubectl 命令大全 在前面,我们学习到了一些 Kubernetes 知识,现在列出 kubectl 的所有命令以及其缩写形式,供翻阅查询。 ku[......] 继续阅读

2021年4月29日 1条评论 10671点热度 0人点赞 痴者工良 阅读全文

目录 更新 上线 会滚 缩放 Deployment 直接设置 Pod 水平自动缩放 比例缩放 暂停 Deployment 上线 本篇内容讨论 Pod 的更新和回滚,内容不多。 更新 打开 https://hub.docker.com/_/nginx 可以查询 nginx 的镜像版本,我们可以[......] 继续阅读

2021年4月25日 0条评论 2909点热度 0人点赞 痴者工良 阅读全文

Table of Contents Update Rollout Rollback Scale Deployment Direct Set Pod Horizontal Autoscaling Proportional Scaling Pause Deployment Rollout This[......] 继续阅读

2021年4月25日 0条评论 98点热度 0人点赞 痴者工良 阅读全文

Table of Contents Srevice Creation and Phenomenon of Service Service Definition Endpoint Slices Creating Endpoint and Service Service Creating Appli[......] 继续阅读

2021年4月23日 0条评论 1094点热度 0人点赞 痴者工良 阅读全文

目录 Srevice Service 的创建及现象 Service 定义 Endpoint slices 创建 Endpoint、Service Service 创建应用 创建 Endpoint 浅入Kubernetes(8):外网访问集群 中已经介绍过部署一个 Deployment 和 S[......] 继续阅读

2021年4月23日 0条评论 3072点热度 0人点赞 痴者工良 阅读全文