涂小刚-基于k8s的微服务实践
ai-dc-api 业务线名称 ai dt ad 现有环境名 test preview prod 统一规划环境名和业务应用名,适配标准自动化运维。 业务线名称采用拼音首字母缩写 k8s-namespaces 环境名称定义采用业务线缩写名加环境名组成 k8s-service名称、app名称和应用名称包名保持一致 k8s-api配置对象 作用 k8s-namespace 通过配置文件关键字d 20190510-1033 v20 registry.hz.local/huize/ai-test_ai-dc-web:20190510-1033_v20 k8s镜像构建过程 domain/path namespaces app-name date-time git-ver 镜像地址规范 镜像地址组成 你好我是分享标题 我是作者名称 每个控制平面节点运行的一个 实例kube-apiserver,kube- applog logstash kafka-groupid=file file-storage mkdir -p /data/all- log/${namespaces}/${pod-name} ln -sf ${namespaces}/${pod-name} to app-log-path pod 1 worker node pod * app-log log* daemonsets0 码力 | 19 页 | 1.34 MB | 1 年前3Kubernetes开源书 - 周立
启⽤Kubernetes Dashboard 执⾏: kubectl proxy 02-安装单机版Kubernetes 8 访问: http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/overview? namespace=default 参考: https://kubernetes 使⽤Namespace Namespace的创建和删除在 Admin Guide documentation for namespaces 有描述。 查看Namespace 可使⽤如下命令列出集群中当前的Namespace: $ kubectl get namespaces NAME STATUS AGE default Active 1d kube-system kubectl proxy # 另起⼀个终端,输⼊: curl http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/heapster/api/v1/model/namespaces/de fault/pods/cpu-demo/metrics/cpu/usage_rate 即可看到监控信息。 在本例中,尽管容0 码力 | 135 页 | 21.02 MB | 1 年前3第1930期:Kubernetes基础介绍
ctl --server=127.0.0.1:8888 get --all-namespaces pod -o wide,让我们能方便快速的执行命令 #!/bin/bash alias pod='/opt/bin/kubectl --server=127.0.0.1:8888 get --all-namespaces pod -o wide' alias rc='/opt/bin/kubectl rc='/opt/bin/kubectl --server=127.0.0.1:8888 get --all-namespaces rc' alias svc='/opt/bin/kubectl --server=127.0.0.1:8888 get --all-namespaces svc' alias desc_pod='/opt/bin/kubectl --server=127.0.0.1:8888 describe pod' alias0 码力 | 49 页 | 4.11 MB | 1 年前3QCon北京2018/QCon北京2018-《Kubernetes-+面向未来的开发和部署》-Michael+Chen
Runtime Objects Component Description Pods A grouping of one or more containers as an atomic unit Namespaces A way to organize items in a cluster Labels, Annotations & Selectors Tags for component grouping user creates a new K8s Namespace 3. The K8s API Server notifies NCP of the change (addition) of Namespaces 4. NCP creates the network topology for the Namespace : a) Requests a new subnet from the pre-0 码力 | 42 页 | 10.97 MB | 1 年前3张海宁:使用Kubernetes部署超级账本Fabric
20 Kubernetes 架构 SACC2017 21 K8s 集群模型 • 一个或多个主节点 (master) • 一个或多个工作节点(worker) • 命名空间(Namespaces) – 用于命名分隔资源的逻辑组 K8s Cluster Worker node 1 Worker node 2 Worker node 3 Master SACC2017 pod和service. 41 启动集群 SACC2017 • 以org1为例,查看namespace为 org1下的所有Pod: $ kubectl get pods –namespaces org1 • 进入cli-2586364563-vclmr Pod: $ kubectl exec -it cli-2586364563-vclmr0 码力 | 45 页 | 2.70 MB | 1 年前3k8s操作手册 2.3
/etc/kubernetes/admin.conf ~/.kube/config # chown $(id -u):$(id -g) ~/.kube/config # kubectl get pod --all-namespaces #查看容器运行状态 如果有2个coredns的pod未启动就绪,因为pod网络组件还未部署,部署后再查 看;如果部署网络组件之后还未启动,则可能是网络不通,防火墙要放通pod namespace=monitoring # kubectl apply -f ./ #正式部署 # kubectl get pod --all-namespaces #下载镜像 docker pull quay.io/prometheus/alertmanager:v0.23.0 docker pull quay.io/prometh0 码力 | 126 页 | 4.33 MB | 1 年前3实际案例Kubernetes on Supporting 1 Million Bike-Taxi Drivers in Indonesia
Expansion Projects Whiterabbit Kubernetes custom resources to support sharding with Kubernetes namespaces. Barito Log Open source on-demand logging infrastructure platform. Visit: https://github.com/BaritoLog/0 码力 | 37 页 | 34.65 MB | 1 年前3Apache OpenWhisk + Kubernetes: A Perfect Match for Your Serverless Platform
Config Maps § Daemon Sets § Deployments § Events § Endpoints § Ingress § Jobs § Nodes § Namespaces § Pods § Persistent Volumes § Replica Sets § Secrets § Services § Stateful Sets… § K8s通过这些资源模型构建应用程序0 码力 | 24 页 | 3.53 MB | 1 年前3全球架构师峰会2019北京/大数据/Kubernetes 运行大数据工作负载的探索和实践&mdash
name: job-1574739729783-driver namespace: default resourceVersion: “12093805” selfLink: /api/v1/namespaces/default/pods/job- 1574739729783-driver uid: f26a81f3-10f8-11ea-938f-fa163eddd2ce Spec: containers:0 码力 | 25 页 | 3.84 MB | 1 年前3Kubernetes 入門
https://: /ui 該 URL 將會被重導向到: https:// : /api/v1/proxy/namespaces/kube-system/services/ kube-ui/#/dashboard/ 圖 4.6 顯示了 kube-ui 的主頁,展示所有 Node 的資訊,並且每秒更新顯示每個 Node 0 码力 | 12 页 | 2.00 MB | 1 年前3
共 11 条
- 1
- 2