Skip to content

zhangfuwen1989/k8s

Repository files navigation

项目说明

YAMLFormatspecification 项目 K8S yaml 参数说明

containerd K8S 容器运行时部署 ansible 模式部署

dockerfile 一些常见的dockerfile 文件

ipv4andipv6 K8S 双栈部署脚本 生成ansible 可部署脚本

k8s-kernel-sysctl K8S 宿主机相关优化

k8s-yaml K8S 一些常规yaml

kata-containers kata-containers ansible 部署脚本

k8s-install.sh 一键自动ansible 部署 K8S 集群

kubens 命名空间切换脚本

配置污点

kubectl taint nodes  k8s-ingress-01 node-role.kubernetes.io/ingress=:NoSchedule
kubectl taint nodes  k8s-ingress-02 node-role.kubernetes.io/ingress=:NoSchedule

# 创建 label 不创建是不能部署的或者删除yaml 文件 nodeSelector项

 kubectl label nodes k8s-ingress-01  ingress=yes
 kubectl label nodes k8s-ingress-02  ingress=yes

k8s 1.26及以上的版本日志收集

# 示例
/apps/k8s/bin/kube-log-runner -log-file=/apps/k8s/log/kube-apiserver.log --also-stdout=false /apps/k8s/bin/kube-apiserver $KUBE_APISERVER_OPTS

service 需修改Type
Type=simple

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published