随笔分类 -  cloud native

摘要:云原生快速落地 阅读全文
posted @ 2022-02-04 23:32 Mr.peter 阅读(43) 评论(0) 推荐(0) 编辑
摘要:何谓云原生? 技术的变革,一定是思想先行,云原生是一种构建和运行应用程序的方法,是一套技术体系和方法论。云原生(CloudNative)是一个组合词,Cloud+Native。Cloud表示应用程序位于云中,而不是传统的数据中心;Native表示应用程序从设计之初即考虑到云的环境,原生为云而设计,在 阅读全文
posted @ 2022-02-04 23:28 Mr.peter 阅读(42) 评论(0) 推荐(0) 编辑
摘要:传统web服务落地kubernetes流程,这里以java web为例。 1.准备好一个测试过的运行正常的项目,以tomcat作为基础镜像,docker pull 拉取tomcat镜像,docker tag 后docker push到自己的镜像仓库(harbor) 2.mvn package打包项目 阅读全文
posted @ 2020-11-15 22:28 Mr.peter 阅读(192) 评论(0) 推荐(0) 编辑
摘要:State Persistence (8%) Defining and Mounting a PersistentVolume Create a Persistent Volume named pv, access mode ReadWriteMany, storage class name sha 阅读全文
posted @ 2020-05-06 14:58 Mr.peter 阅读(318) 评论(0) 推荐(0) 编辑
摘要:Services & Networking (13%) Routing Traffic to Pods from Inside and Outside of a Cluster Create a deployment named myapp that creates 2 replicas for P 阅读全文
posted @ 2020-05-06 13:55 Mr.peter 阅读(442) 评论(0) 推荐(0) 编辑
摘要:Pod Design (20%) Defining and Querying Labels and Annotations Create three different Pods with the names frontend, backend and database that use the i 阅读全文
posted @ 2020-05-05 18:05 Mr.peter 阅读(369) 评论(0) 推荐(0) 编辑
摘要:Observability (18%) Defining a Pod’s Readiness and Liveness Probe Create a new Pod named hello with the image bonomat/nodejs-hello-world that exposes 阅读全文
posted @ 2020-05-05 16:33 Mr.peter 阅读(393) 评论(0) 推荐(0) 编辑
摘要:Multi-Container Pods (10%) Implementing the Adapter Pattern The adapter pattern helps with providing a simplified, homogenized view of an application 阅读全文
posted @ 2020-05-05 14:56 Mr.peter 阅读(366) 评论(0) 推荐(0) 编辑
摘要:Configuration (18%) Configuring a Pod to Use a ConfigMap Create a new file named config.txt with the following environment variables as key/value pair 阅读全文
posted @ 2020-05-05 13:53 Mr.peter 阅读(474) 评论(0) 推荐(0) 编辑
摘要:Core Concepts (13%) Creating a Pod and Inspecting it Create the namespace ckad-prep. In the namespace ckad-prep create a new Pod named mypod with the 阅读全文
posted @ 2020-05-05 11:28 Mr.peter 阅读(457) 评论(0) 推荐(0) 编辑
摘要:练习环境: https://www.katacoda.com/courses/kubernetes/playground CKAD考试大纲: Core Concepts (13%) Multi-Container Pods (10%) Pod Design (20%) State Persisten 阅读全文
posted @ 2020-04-27 11:07 Mr.peter 阅读(5265) 评论(0) 推荐(0) 编辑
摘要:题目: 检查有多少nodes是ready状态,(不包含node的污点,没有调度的),写入数量到 /opt/nodenum 解答: (1)获取Ready的节点数m kubectl get node | grep -w Ready | wc -l (2)获取有污点和没有调度的节点数n kubectl d 阅读全文
posted @ 2020-04-26 14:10 Mr.peter 阅读(388) 评论(0) 推荐(0) 编辑
摘要:考试题: 向lumpy—koala添加一个init容器(已在/opt/kucc00100/pod-spec-kucc00100.yaml中定义) init容器应该创建一个名为/workdir/calm.txt的空文件 如果/workdir/calm.txt没有检测到,Pod应该退出 一旦使用init 阅读全文
posted @ 2020-04-26 10:52 Mr.peter 阅读(620) 评论(0) 推荐(0) 编辑
摘要:创建一个secret,使用以下: 名字:super-secret credential:bob 创建一个pod名为pod-secrets-via-file 使用redis镜像,挂载名为super-secret的 挂载路径/secrets 使用redis镜像创建第二个Pod名称Pod-secrets- 阅读全文
posted @ 2020-04-26 09:59 Mr.peter 阅读(592) 评论(0) 推荐(0) 编辑
摘要:RBAC——基于角色的访问控制 以下内容是 xingzhou 对 kubernetes 官方文档的翻译,原文地址 https://k8smeetup.github.io/docs/admin/authorization/rbac/ 基于角色的访问控制(Role-Based Access Contro 阅读全文
posted @ 2020-01-17 16:18 Mr.peter 阅读(175) 评论(0) 推荐(0) 编辑
摘要:Service Account为Pod中的进程提供身份信息。 注意:本文是关于 Service Account 的用户指南,管理指南另见 Service Account 的集群管理指南 。 本文档描述的关于 Service Account 的行为只有当您按照 Kubernetes 项目建议的方式搭建 阅读全文
posted @ 2020-01-17 15:24 Mr.peter 阅读(410) 评论(0) 推荐(0) 编辑
摘要:Traefik Ingress Controller 我们在前面部署了 Traefik 作为Ingress Controller,如果集群外部直接访问Kubenretes内部服务的话,可以直接创建Ingress如下所示: apiVersion: extensions/v1beta1 kind: In 阅读全文
posted @ 2020-01-17 15:19 Mr.peter 阅读(437) 评论(0) 推荐(0) 编辑
摘要:Ingress解析 Ingress 是从Kubernetes集群外部访问集群内部服务的入口,这篇文章部分译自Kubernetes官方文档Ingress Resource,后面的章节会讲到使用Traefik来做Ingress controller,文章末尾给出了几个相关链接。 术语 在本篇文章中你将会 阅读全文
posted @ 2020-01-17 15:17 Mr.peter 阅读(298) 评论(0) 推荐(0) 编辑
摘要:Service Kubernetes Pod 是有生命周期的,它们可以被创建,也可以被销毁,然而一旦被销毁生命就永远结束。 通过 ReplicationController 能够动态地创建和销毁 Pod。 每个 Pod 都会获取它自己的 IP 地址,即使这些 IP 地址不总是稳定可依赖的。 这会导致 阅读全文
posted @ 2020-01-17 10:31 Mr.peter 阅读(324) 评论(0) 推荐(0) 编辑
摘要:准入控制器(Admission Controller) 准入控制器(Admission Controller)位于 API Server 中,在对象被持久化之前,准入控制器拦截对 API Server 的请求,一般用来做身份验证和授权。其中包含两个特殊的控制器:MutatingAdmissionWe 阅读全文
posted @ 2020-01-16 17:48 Mr.peter 阅读(1656) 评论(0) 推荐(0) 编辑