摘要:
数据持久化存储类型: emptyDir HostPath 1. emptyDir: spec: nodeName: 10.0.0.13 volumes: - name: mysql emptyDir: {} containers: - name: wp-mysql image: 10.0.0.11: 阅读全文
posted @ 2019-12-11 21:08
杨港澳
阅读(73)
评论(0)
推荐(0)
摘要:
k8s弹性伸缩,需要附加插件heapster 1.安装heapster监控 1:上传并导入镜像,打标签 ls *.tar.gz for n in `ls *.tar.gz`;do docker load -i $n ;done docker tag docker.io/kubernetes/heap 阅读全文
posted @ 2019-12-11 21:04
杨港澳
阅读(210)
评论(0)
推荐(0)
摘要:
第一种:NodePort类型 type: NodePort ports: - port: 80 targetPort: 80 nodePort: 30008 第二种:ClusterIP类型 type: ClusterIP ports: - port: 80 targetPort: 80 http 阅读全文
posted @ 2019-12-11 20:38
杨港澳
阅读(82)
评论(0)
推荐(0)
摘要:
1.上传镜像,并导入,打标签 2.创建dashboard的deployment和service apiVersion: extensions/v1beta1 kind: Deployment metadata: # Keep the name in sync with image version a 阅读全文
posted @ 2019-12-11 20:36
杨港澳
阅读(130)
评论(0)
推荐(0)
摘要:
1.探针的种类 livenessProbe: 健康状态检查,周期性检查服务是否存活,检查结果失败,将重启容器。 readinessProbe: 可用性检查,周期性检查服务是否可以,不可用将从service的endpoints中移除。 2.探针的检测方法: exec : 执行一段命令,返回值为0 或非 阅读全文
posted @ 2019-12-11 20:21
杨港澳
阅读(108)
评论(0)
推荐(0)
摘要:
namespace作用:资源隔离 当我们不指定namespace时,默认放在default下 创建namespace kubectl create namespace 资源名称 在生产中,我们建议一个业务放在一个namespace中 为tomcat创建一个namespace kubectl crea 阅读全文
posted @ 2019-12-11 19:54
杨港澳
阅读(286)
评论(0)
推荐(0)
浙公网安备 33010602011771号