随笔分类 - Kubernetes
摘要:用kubernetes-API删除 1、首先,获取要删除 NameSpace 的 JSON 文件: 替换其中的 <terminating-namespace> 为实际 namespace kubectl get namespace <terminating-namespace> -o json >t
阅读全文
摘要:k8s operator开发与使用 本篇文章用于记录k8s operator的开发,此处以一个简单的demo来记录operator的开发过程及相关要点;本文中使用kubebuilder工具来生成相关代码。 实现一个daemonset资源对象的operator,作用为在每个节点启动一个nginx po
阅读全文
摘要:1、ssh登录到node节点 2、查看日志 1)针对systemd拉起的服务 journalctl -afu kubelet -S “2019-08-26 15:00:00” -u unit,对应的systemd拉起的组件,如kubelet -f follow,跟踪最新日志 -a show all,
阅读全文
摘要:一、构建私有helm repo仓库 此处使用harbor仓库作为helm repo,使用内部统一的harbor仓库:https://harbor.xxx.com/ 1、harbor仓库启用helmchart 服务 harbor之前没用启用helmchart服务,我们可以把服务停掉,然后将helm c
阅读全文
摘要:cfssl工具生成证书搭建Harbor仓库 概要:此处记录使用cfssl工具生成harbor私有证书,并使用证书搭建Harbor仓库,此证书使用按照kubernetes时使用的ca证书来按照。 一、下载cfssl相关工具 curl https://pkg.cfssl.org/R1.2/cfssl_l
阅读全文