Kubernetes开源书 - 周立
09-Label和Selector 10-Annotation 11-K8s架构及基本概念 12-Master与Node的通信 13-Node 14-Pod 15-Replica Set 16-Deployment 17-StatefulSet 18-Daemon Set 19-配置最佳实践 20-管理容器的计算资源 21-Kubernetes资源分配 22-将Pod分配到Node 23-容忍与污点 启动⼀个单节点nginx ]# kubectl run nginx --image=nginx:1.7.9 --port=80 # 为“nginx”服务暴露端⼝ ]# kubectl expose deployment nginx --type=NodePort # 查看nginx服务详情 03-使⽤Kubespray部署⽣产可⽤的Kubernetes集群(1.11.2) 13 ]# kubectl kube-scheduler 监视新创建的、还没分配Node的Pod,并选择⼀个Node供这些Pod运⾏。 addons(插件) Addon是实现集群功能的Pod和Service。Pod可由Deployment、ReplicationController等进⾏管理。Namespace的插件 对象则是在 kube-system 这个namespace中被创建的。 Addon manager创建并维护addon的资源。详⻅这⾥:0 码力 | 135 页 | 21.02 MB | 1 年前3OpenShift Container Platform 4.10 CLI 工具
<- bc/cakephp-ex source builds https://github.com/sclorg/cakephp-ex on openshift/php:7.2 deployment #1 deployed 2 minutes ago - 1 pod 3 infos identified, use 'oc status --suggest' to see details os7:latest #1 deployed 22 minutes ago - 2 pods To see more information about a service or deployment, use 'oc describe service' or 'oc describe dc '. You can use 'oc get all' to see Edit the last-applied-configuration annotations by type/name in YAML oc apply edit-last-applied deployment/nginx # Edit the last-applied-configuration annotations by file in JSON oc apply edit-last-applied 0 码力 | 120 页 | 1.04 MB | 1 年前3OpenShift Container Platform 4.13 CLI 工具
bc/cakephp-ex source builds https://github.com/sclorg/cakephp-ex on openshift/php:7.2 deployment #1 deployed 2 minutes ago - 1 pod 3 infos identified, use 'oc status --suggest' to see details os7:latest #1 deployed 22 minutes ago - 2 pods To see more information about a service or deployment, use 'oc describe service' or 'oc describe dc '. You can use 'oc get all' to see Edit the last-applied-configuration annotations by type/name in YAML oc apply edit-last-applied deployment/nginx # Edit the last-applied-configuration annotations by file in JSON oc apply edit-last-applied 0 码力 | 128 页 | 1.11 MB | 1 年前3OpenShift Container Platform 4.8 CLI 工具
<- bc/cakephp-ex source builds https://github.com/sclorg/cakephp-ex on openshift/php:7.2 deployment #1 deployed 2 minutes ago - 1 pod 3 infos identified, use 'oc status --suggest' to see details os7:latest #1 deployed 22 minutes ago - 2 pods To see more information about a service or deployment, use 'oc describe service' or 'oc describe dc '. You can use 'oc get all' to see Edit the last-applied-configuration annotations by type/name in YAML. oc apply edit-last-applied deployment/nginx # Edit the last-applied-configuration annotations by file in JSON. oc apply edit-last-applied 0 码力 | 152 页 | 1.24 MB | 1 年前3Cloud Native Contrail Networking Installation and Life Cycle ManagementGuide for Rancher RKE2
Networking Overview | 2 Terminology | 4 CN2 Components | 6 Deployment Models | 11 Single Cluster Deployment | 11 Multi-Cluster Deployment | 12 System Requirements | 15 2 Install Overview | Introduction Cloud-Native Contrail Networking Overview | 2 Terminology | 4 CN2 Components | 6 Deployment Models | 11 System Requirements | 15 Cloud-Native Contrail Networking Overview SUMMARY plane as necessary. Although any single node can contain only one Contrail controller, a typical deployment contains multiple controllers running on multiple nodes. When there are multiple Contrail controllers0 码力 | 72 页 | 1.01 MB | 1 年前3OpenShift Container Platform 4.10 构建应用程序
HELM 7.2. 安装 HELM 7.3. 配置自定义 HELM CHART 仓库 7.4. 使用 HELM 发行版本 第 第 8 章 章 DEPLOYMENTS 8.1. 了解 DEPLOYMENT 和 DEPLOYMENTCONFIG 对象 8.2. 管理部署过程 8.3. 使用部署策略 8.4. 使用基于路由的部署策略 4 4 4 4 5 5 11 11 16 16 管理的后端服务绑定在一起,而无需手动步骤配置绑定连 接。您还可以在 IBM Power Systems、IBM Z 和 LinuxONE 环境中 应用服务绑定。 1.2.4. 部署应用程序 您可以使用 Deployment 或 DeploymentConfig 对象部署应用程序,并从 Web 控制台管理应用程序。您 可以创建部署策略,以帮助减少更改期间或升级到应用程序的停机时间。 您还可以使用 Helm,它 资源名称必须在命名空间中具有唯一性。如果遇到错误,请修改资源名称。 7. 在 Resources 部分,选择: Deployment,以纯 Kubernetes 风格方式创建应用程序。 Deployment Config,创建 OpenShift Container Platform 风格的应用程序。 Serverless Deployment,创建 Knative 服务。 注意 注意 只有集群中安装 OpenShift0 码力 | 198 页 | 3.62 MB | 1 年前3OpenShift Container Platform 4.9 构建应用程序
1. 了解 HELM 6.2. 安装 HELM 6.3. 配置自定义 HELM CHART 仓库 6.4. 使用 HELM 发行版本 第 第 7 章 章 部署 部署 7.1. 了解 DEPLOYMENT 和 DEPLOYMENTCONFIG 对象 7.2. 管理部署过程 7.3. 使用部署策略 7.4. 使用基于路由的部署策略 第 第 8 章 章 配 配额 额 8.1. 项目的资源配额 管理的后端服务绑定在一起,而无需手动步骤配置绑定连 接。您还可以在 IBM Power Systems、IBM Z 和 LinuxONE 环境中 应用服务绑定。 1.2.4. 部署应用程序 您可以使用 Deployment 或 DeploymentConfig 对象部署应用程序,并从 Web 控制台管理应用程序。您 可以创建部署策略,以帮助减少更改期间或升级到应用程序的停机时间。 您还可以使用 Helm,它 资源名称必须在命名空间中具有唯一性。如果遇到错误,请修改资源名称。 7. 在 Resources 部分,选择: Deployment,以纯 Kubernetes 风格方式创建应用程序。 Deployment Config,创建 OpenShift Container Platform 风格的应用程序。 Serverless Deployment,创建 Knative 服务。 注意 注意 OpenShift Container0 码力 | 184 页 | 3.36 MB | 1 年前3Deploying and ScalingKubernetes with Rancher
..........................................................................36 4.1 Continuous Deployment – Service Upgrades and Rollbacks .......................................36 4.1.1 A closer look process with another set of instances. Kubernetes supports rolling updates with the use of “deployment” and “rolling-update” abstractions. Deployments are a fairly recent addition to the project, but (note: starting with Rancher 1.1, it is suggested to have at least three hosts for your Kubernetes deployment; having these hosts for etcd ensures a highly-available setup). ©Rancher Labs 2017. All0 码力 | 66 页 | 6.10 MB | 1 年前3⾸云容器产品Kubernetes操作指南
可以在基本信息和yaml⽂件中切换不同的显示⽅式 20 删除存储卷 21 ⾸云⽀持创建⽆状态(Deployment)和有状态(StatefulSet)应⽤,并提供相应的容器组管理。 创建⼀个 Kubernetes 集群。详情请参⻅集群管理->创建集群。 创建⽆状态(Deployment)应⽤ a) 在容器服务菜单下,单击左侧导航栏中的应⽤>⽆状态,选择所需的命名空间(默认为deafult), 使⽤量和内存使⽤量,需要和设置的所需资源类型相同。 触发条件:资源使⽤率的百分⽐,超过设置的Pod request值,容器开始扩容。 最⼤副本数:该 Deployment 可扩容的副本(即容器组Pod)数量上限。 最⼩副本数:该 Deployment 可缩容的副本(即容器组Pod)数量下限。 注:若要启⽤⽔平伸缩,您必须为容器设置所需资源,否则容器⾃动伸缩⽆法⽣效。参⻅容器基本配置环 节。 参⻅https://kubernetes.io/zh/docs/concepts/workloads/controllers/deployment/ 不可使⽤Pod最⼤数量:⽤于指定 Deployment在更新过程中不可⽤状态的Pod数量的百分⽐ 上限 超过期望的Pod数量:⽤于指定在Deployment 更新Pod的过程中Pod总数超过Pod期望副本 数的百分⽐上限 27 可选:Pod标签和注解。0 码力 | 94 页 | 9.98 MB | 1 年前3k8s操作手册 2.3
--iface-regex=10.99.1.* 匹配要通信的ip网段(为node结点的通 信ip网段,即pod容器流量使用此ip网络对应的网口进行vxlan封装) #最后重新部署flannel的deployment文件 # kubectl apply -f kube-flannel.yml #可见flannel的pod启动了(名称为kube-flannel-xxxx) # ip -d link resource # kubectl create -f custom-resources.yaml #如果需要更改镜像,只能部署 后,只能更改相应的daemonset及deployment #查看calico节点状态,状态全部为Running则为启动成功 # kubectl get pods -n �gera-operator NAME limits.memory: 4Gi #内存资源限制的总量限额 count/deployments.apps: "2" #可以创建的deployment总数 count/deployments.extensions: "2" persistentvolumeclaims: "2" #可以创建的pvc总数0 码力 | 126 页 | 4.33 MB | 1 年前3
共 295 条
- 1
- 2
- 3
- 4
- 5
- 6
- 30