K8s教程-构建ubuntu+sshd+mysql-Docker镜像 2021年11月3日 | Kubernetes Dockerfile-5.6 基于ubuntu20.04构建ssh和mysql服务的镜像 需要下载:mysql-5.6.36-linux-glibc2.5-x86…… 阅读全文
K8s教程-k3s安装文档 2021年8月31日 | Kubernetes 环境准备 # 解决已知bug # open /proc/sys/net/netfilter/nf_conntrack_max: permission denied grep -q net.netfilter.nf_conntrack_max /etc/sysctl.conf || echo 'net.netfilter.nf_conntrack_max=131072' >> /etc/sysctl.conf sysctl -p | grep nf_conntrack_max 安装server # 国内用户,可以使用以下方法加速安装 curl -sfL http://rancher-mirror.cnrancher.com/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh - # 查…… 阅读全文
K8s教程-rancher安装文档 2021年8月31日 | Kubernetes 环境准备 # 解决已知bug # open /proc/sys/net/netfilter/nf_conntrack_max: permission denied grep -q net.netfilter.nf_conntrack_max /etc/sysctl.conf || echo 'net.netfilter.nf_conntrack_max=131072' >> /etc/sysctl.conf sysctl -p | grep nf_conntrack_max 安装 # 安装 Rancher 2.x docker run -d --privileged --restart=unless-stopped \ -p 80:80 -p 443:443 \ rancher/rancher:latest 注册主机(创建业务集群) 添加集群…… 阅读全文
K8s教程-ceph分布式存储 2021年8月25日 | Kubernetes 测试环境:Ubuntu20.04 版本 v14.2.22 Nautilus released v15.2.14 Octopus released v16.2.5 Pacific released 最新版本,建议使用此版本? This is the fifth backport release in the Pacific series. We recommend all Pacific users update to this release. 概念介绍 什么是…… 阅读全文
K8s教程-ingress-nginx测试 2021年8月24日 | Kubernetes 注意保证虚拟机时间同步,否则无法拉取镜像 报错:x509: certificate has expired or is not yet valid 创建deployment test1.zazayaya.com 和 test2.zazayaya.com # apt install ntpdate;ntpdate cn.ntp.org.cn mkdir ~/ingress-test # 部署pod cat >…… 阅读全文
K8s教程-自定义镜像并上传dockerhub 2021年8月24日 | Kubernetes 编写web测试程序 cat > hello-world.go << EOF package main import ( "fmt" "net/http" "os" ) func main() { http.HandleFunc("/", HelloServer) fmt.Printf("http://0.0.0.0:8080\n") http.ListenAndServe(":8080", nil) } func HelloServer(w http.ResponseWriter, r *http.Request) { name, err := os.Hostname() if err != nil { name="获取主机名失败…… 阅读全文