YAML文件内容(把tomcat和mysql放到同一个Pod中) apiVersion: v1 kind: Pod metadata: name: my-app labels: name: my-app spec: containers: - name: tomcat
1-nodeAffinity 类似于nodeSelector,根据节点上的标签来调度Pod到哪些节点 2-调度策略 硬策略(required):必须满足,不满足则Pod处于Pending状态 软策略(preferred):尝试满足,但不保证 操作符:In、NotIn、Exists、DoseNotEx
重启策略 Always: 当容器终止后,总是重启,默认策略 OnFailure: 当容器异常退出(退出状态码非0)时,才重启容器 Never: 不论容器状态如何,都不重启容器 3种检查方式 httpGet: 发送HTTP请求,返回200-400范围状态码表示成功 exec: 执行Shell命令返回状
1-定义一个Deployment 1.1-tomcat-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: frontend labels: app: app-demo spec: replica
1-k8s集群架构 IP 角色 192.168.1.3 master1 192.168.1.4 master2 192.168.1.5 master3 192.168.1.6 node1 192.168.1.7 node2 2-部署ES集群
1-概念 -PV访问模式AccessModes RWO - ReadWriteOnce #单个Pod挂载并且可读写 ROX - ReadOnlyMany #可以有多个Pod以只读方式挂载 RWX - ReadWriteMany #可以有多个Pod以读写方式挂载 -PV回收策略RECLAIM POLI
1-创建命名空间elk kubectl create ns elk 2-安装NFS mkdir /nfs_data/es chmod -R 777 /nfs_data/es vim /etc/exports #添加如下内容 /nfs_data/es 192.168.0.0/16(rw,sync,no
1-部署NFS mkdir /nfs_data/minio_data chmod -R 777 /nfs_data/minio_data 2-创建命名空间minio kubectl create ns minio 3-deployment apiVersion: apps/v1 kind: Depl
1-常用别名 cat >> ~/.bash_profile <<EOF export NAMESPACE=default alias kgn='kubectl get node' alias kgns='kubectl get node --show-labels' alias kdp='kubec
https://github.com/kubernetes/minikube https://kubernetes.io/zh/docs/tutorials/hello-minikube/
http://docs.kubernetes.org.cn/ 0-配置.bashrc cat >> ~/.bashrc << EOF alias kg='kubectl get' alias k='kubectl' alias kd='kubectl describe pods' alias ke=
1-deployment 1.1-创建nginx.yml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: nginx-deployment spec: replicas: 3 template: metadata
https://www.runoob.com/bootstrap4/bootstrap4-install.html https://v5.bootcss.com/docs/getting-started/introduction/
parking_system_applet - 停车场系统小程序,新能源电动车充电系统 Gitee:https://gitee.com/wangdefu/parking_system_applet
wisdom-智慧农业、农业平台、智慧农业物联网平台 Gitee:https://gitee.com/dnxt111/wisdom
source-love - 相亲小程序 Gitee:https://gitee.com/open-source-byte/source-love dating-ping-t - 相亲平台 Gitee: