06 2023 档案
摘要:1、在kubenetes集群中创建一个pod 创建mys,拉取镜像 kubectl create deployment mysql --image=mysql 2、查看镜像是否下载成功 kubectl get pod status为running 表示拉取完成 要等一会 3、暴露mysql端口 ku
阅读全文
摘要:kubectl是Kubernetes集群的命令行接口 语法格式: kubectl [command] [TYPE] [NAME] [flags] 1、comand:指定要对资源执行的操作,例如create、get、describe和delete 2、TYPE:指定资源类型,资源类型是大小学敏感的,开
阅读全文
摘要:1、在kubenetes集群中创建一个pod 创建redis,拉取镜像 kubectl create deployment redis --image=redis 2、查看镜像是否下载成功 kubectl get pod status为running 表示拉取完成 3、暴露redis端口 kubec
阅读全文
摘要:1、在kubenetes集群中创建一个pod 创建nginx,拉取镜像 kubectl create deployment nginx --image=nginx 2、查看镜像是否下载成功 kubectl get pod status为running 表示拉取完成 3、暴露Nginx端口 kubec
阅读全文
摘要:重启服务服务器后,kubectl get nodes,查看节点报错: kubernetes error: IP:6443 was refused - did you specify the right host or port? 查看systemctl status kubelet状态, 查看日志:
阅读全文
摘要:1、准备环境 #开放防火墙端口或关闭防火墙 systemctl stop firewalld #关闭selinux setenforce 0 或者 永久修改 sed -i 's/enforcing/disabled/' /etc/selinux/config #关闭swa swapoff -a #三
阅读全文
摘要:1、编写启动服务文件 /lib/systemd/system/redis.service [Unit]Description=The redis-server Process ManagerDocumentation=https://redis.io/After=network.target [Se
阅读全文