会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
SZ_文彬
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
11
下一页
2019年8月9日
k8s之serviceaccount,登录账号创建
摘要: kubectl --> 认证 >授权 -->准入控制 认证:证书 身份识别 授权:rbac 权限检查 准入控制: 补充授权机制 多个插件实现 只在创建 删除 修改 或做代理操作时做补充 用户账号: user 客户端 -->API server --> user:username,uid group:
阅读全文
posted @ 2019-08-09 01:53 SZ_文彬
阅读(2940)
评论(0)
推荐(0)
2019年8月7日
k8s之statefulset控制器
摘要: operator: statefulset:有状态副本集 特点 运行在: 1,稳定且唯一的网络标识符 2,稳定且持久的存储 3,有序,平滑地部署和扩展 4,有序,平滑地删除和终止 5,有序的滚动更新 三个组件:headless service(无头服务), statefuleset,volumeCl
阅读全文
posted @ 2019-08-07 19:30 SZ_文彬
阅读(1273)
评论(0)
推荐(0)
k8s之configmap和secret
摘要: secret存储卷 加密存放配置文件 kubectl explain pods.spec.volumes.secret configmap存储卷 放置配置文件的 配置中心 kubectl explain pods.spec.volumes.configMap 配置容器化运用的方式: command
阅读全文
posted @ 2019-08-07 15:04 SZ_文彬
阅读(430)
评论(0)
推荐(0)
一键关闭集群机器
摘要: 创建秘钥对 ssh-keygen 传公钥 ssh-copy-id node1 ssh-copy-id node2 #!/bin/sh ssh node1 "init 0" ssh node2 "init 0" sleep 5 init 0
阅读全文
posted @ 2019-08-07 14:09 SZ_文彬
阅读(182)
评论(0)
推荐(0)
2019年8月6日
k8s之数据存储
摘要: 查看k8s支持的存储类 kubectl explain pods.spec.volumes 1.emptydir kubectl explain pods.spec.volumes.emptyDir kubectl explain pods.spec.containers 容器中设置 kubectl
阅读全文
posted @ 2019-08-06 23:14 SZ_文彬
阅读(1345)
评论(0)
推荐(0)
2019年8月5日
k8s之ingress反向代理pod
摘要: Ingress controller Nginx -->后来改造 Traefik -->也是用于微服务 Envoy -->微服务 Ingress资源 目前使用0.17.1版本ingress-nginx ingress定义 后端pod发生变化,service就变化,service变化ingress就发
阅读全文
posted @ 2019-08-05 23:41 SZ_文彬
阅读(4445)
评论(0)
推荐(0)
k8s之service
摘要: K8s三种网络: node network pod network cluster network --> virtual ip --> service 规则 service: kube-proxy监控api-server,api-server数据发生改变,相应的kube-proxy就会改变serv
阅读全文
posted @ 2019-08-05 00:41 SZ_文彬
阅读(908)
评论(0)
推荐(0)
2019年8月3日
k8s之pod控制器
摘要: Pod控制器类型: ReplicationController à Replicaset Replicaset:维持用户期望的pod副本数 标签选择器:以便选定由自己选定管理的pod副本 pod资源模板:完成pod资源的新建 特点:管理无状态的pod资源,精确反映用户所定义的目标数量 K8s不建议直
阅读全文
posted @ 2019-08-03 20:56 SZ_文彬
阅读(1068)
评论(0)
推荐(0)
k8sd之pod生命周期
摘要: pod生命周期: 状态:pending 挂起 没有节点满足条件 running 运行 Failed sucess unkonwn pod生命周期中的重要行为: 初始化容器 容器探测:liveness probe 探测容器是否活着 探测容器 存活性探针 readindess probe 探测容器中主程
阅读全文
posted @ 2019-08-03 00:08 SZ_文彬
阅读(275)
评论(0)
推荐(0)
2019年8月1日
k8s资源清单创建pod
摘要: 资源:对象 service pod deployment workload:pod,ReplicaSet,Deployment,statefulset,DaemonSet,Job,Crontabjob,... 服务发现和负载均衡:service ,Ingress,.... 配置与存储:Volumn存
阅读全文
posted @ 2019-08-01 22:49 SZ_文彬
阅读(918)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
11
下一页