Rancher 用户手册 v1.0
........................ 5 2.2. 操作说明 .................................................. 5 3. 镜像库凭证配置 ............................................................................................. ................................................... 32 7.1. Container 容器 ............................................ 33 7.2. 镜像仓库 ................................................. 33 7.3. Kubernetes(k8s) 3. 镜像库凭证配置 3.1. 概述 如果是内网环境或者使用私有仓库的镜像,需要为 Rancher 配置镜像仓库凭证,在创建应 用时用于拉取镜像时认证。 3.2. 操作说明 具体操作说明如下: 3.2.1. 进入项目视图 通过页面左上角的下拉菜单切换到目标项目。 Page 7 3.2.2. 配置镜像库凭证 进入资源\镜像库配置(Reso0 码力 | 35 页 | 6.47 MB | 1 年前3企业云原生的探索与落地深圳沙龙-RacherLabs-20-11-14/应用容器化最佳实践
2020 Rancher Labs. All Rights Reserved. Confidential 应用容器化一般流程 分析解耦 基础镜像 配置管理 制作镜像 应用编排 运行测试 • 组成模块分析 • 外部组件依赖 • 模块拆分 • …… • 基础镜像选择 • 内置工具确认 • 应用版本需求 • 内部运维管理需求 • …… • 日志级别和位置 • 数据库位置和凭据 • 安全信息 Confidential 制作容器镜像 Dockerfile常用命令: • FROM:指定容器基础镜像 • LABEL:给镜像打上标签,比如添加镜像维护者信息 • ADD:向镜像添加文件,可以使用URL • COPY:向镜像添加文件,不可以使用URL,不会解压缩 • ENV:设置环境变量,可以被后面的指令使用 • RUN:用于容器中运行指定命令,每一次都会生成新的镜像层 • USER : 指 ctices/ 使用更小的base镜像 使用体积小的base镜像,如:Alpine、 Busybox、Scratch 多阶段构建 支持多个FROM,一个用于编译,另 外一个将编译后的可执行文件打入镜 像,减少体积 串联Dockerfile 命令 因为每一个RUN命令对应新的镜像层, 我们应该将多个命令通过&&等方式组 成同一行命令,减少镜像层数 缓存清理 执行一些安装命令如yum0 码力 | 28 页 | 3.47 MB | 1 年前3企业云原生的探索与落地深圳沙龙-RacherLabs-20-11-14/安信证券DevOps探索与实践
通过可视化的方式简化定义每个系统、每 个服务自己流水线的过程,提供更加灵活 的流水线支持; ⚫ 提供统一任务模板给大家选择,模板中对 应的功能在统一的pipeline脚本中实现, 保存到代码仓库中,能够实现问题的统一 修复和功能的统一升级; ⚫ 因为流水线功能分为了pipeline脚本,和 可视化方式配置两部分,通过可视化配置 的部分需要考虑留痕和版本回溯的问题。 工具平台建设-面向应用的交付流水线 部署脚本 ⚫ Dockerfile, Helm Charts ⚫ ... 版本变更标准化 单一可信数据源 ⚫ 代码提交记录与需求的 双向关联 ⚫ 统一的两方库、三方库 ⚫ 统一的生产发布仓库 ⚫ 漏洞及lisence扫描 ⚫ Jira issue key 检查Jira中对应的任务是否存在 ⚫ Jira issue 状态 检查任务状态是否正确 ⚫ 提交人与经办人信息 检查任务的经办人是否与代码提交人一致 UAT SIT playbook hosts文件 shell脚本 软件包 源代码 软件包 同一个制品,使用同样的过程和工具部署所有环境 UAT仓库 SIT仓库 DEV仓库 UAT环境 SIT环境 DEV环境 RELEASE仓库 PRD环境 构建 构建 SIT验收通过 UAT验收通过 永久保留 保留两周 制品晋级 sit流水线 uat流水线 develop流水线0 码力 | 27 页 | 2.42 MB | 1 年前3企业云原生的探索与落地深圳沙龙-RacherLabs-20-11-14/小程序+容器:前端后端全链路敏捷化
整的操作系统,可以做到秒级,大大 的节约了开发测试,部署的时间。 敏捷性 使用 Docker 可以通过定制应用镜像 来实现持续集成、持续交付、部署。 持续交付和部署 开发过程中常见的问题是环境一致性问题。 由于开发环境、测试环境、生产环境不一致 ,导致有些 bug 并未在开发过程中发现。 而 Docker 的镜像提供了除内核外完整的运 行时环境,确保了应用运行环境一致性 一致的运行环境 容器:部署速度快、开发测试更敏捷、提高系统利用率0 码力 | 27 页 | 3.74 MB | 1 年前3Deploying and ScalingKubernetes with Rancher
................................................................................... 6 1.3.5 Container Management and Scaling ........................................................................ .................................... 9 2.4 How Rancher Extends Kubernetes for User-Friendly Container Management ............14 2.4.1 Infrastructure Visibility .................................. .......................................................................................34 4 Container Operations ....................................................................................0 码力 | 66 页 | 6.10 MB | 1 年前3[Buyers Guide_DRAFT_REVIEW_V3] Rancher 2.6, OpenShift, Tanzu, Anthos
relationships with global enterprises, Red Hat has been successful 1 “The Forrester Wave™: Multicloud Container Development Platforms, Q3 2020” by Dave Bartoletti, Charlie Dai with Lauren Nelson, Duncan Dietz Bill Nagel, Forrester – Download Report 2 "Gartner Forecasts Strong Revenue Growth for Global Container Management Software and Services Through 2024” by Susan Moore, Gartner – View Press Release A comparing the capabilities of the four leading Kubernetes Management Platforms: Red Hat OpenShift Container Platform 4.9 (OpenShift/OCP4) with Red Hat Advanced Cluster Management for Kubernetes (RHACM),0 码力 | 39 页 | 488.95 KB | 1 年前3Rancher CIS Kubernetes v.1.4.0 Benchmark Self Assessment
Kubernetes services via Docker containers. Configuration is defined by arguments passed to the container at the time of initialization, not via configuration files. Scoring the commands is different in --audit-log-path argument is set as appropriate (Scored) Notes This path is the path inside of the container. It's combined with the RKE cluster.yml extra- binds: option to map the audit log to the host maintain a configuration file for kube-apiserver. All configuration is passed in as arguments at container run time. Result: Pass (Not Applicable) 1.4.2 - Ensure that the API server pod specification file0 码力 | 47 页 | 302.56 KB | 1 年前3CIS Benchmark Rancher Self-Assessment Guide - v2.4
Kubernetes services via Docker containers. Configuration is defined by arguments passed to the container at the time of initialization, not via configuration files. CIS Benchmark Rancher Self-Assessment maintain a configuration file for the API server. All configuration is passed in as arguments at container run time. 1.1.2 Ensure that the API server pod specification file ownership is set to root:root maintain a configuration file for the API server. All configuration is passed in as arguments at container run time. 1.1.3 Ensure that the controller manager pod specification file permissions are set to0 码力 | 54 页 | 447.77 KB | 1 年前3CIS 1.5 Benchmark - Self-Assessment Guide - Rancher v2.5
Kubernetes services via Docker containers. Configuration is defined by arguments passed to the container at the time of initialization, not via configuration files. CIS 1.5 Benchmark - Self-Assessment maintain a configuration file for the API server. All configuration is passed in as arguments at container run time. 1.1.2 Ensure that the API server pod specification file ownership is set to root:root maintain a configuration file for the API server. All configuration is passed in as arguments at container run time. 1.1.3 Ensure that the controller manager pod specification file permissions are set to0 码力 | 54 页 | 447.97 KB | 1 年前3CIS 1.6 Benchmark - Self-Assessment Guide - Rancher v2.5.4
root:root (Automated) 1.1.9 Ensure that the Container Network Interface file permissions are set to 644 or more restrictive (Manual) 1.1.10 Ensure that the Container Network Interface file ownership is set Kubernetes services via Docker containers. Configuration is defined by arguments passed to the container at the time of initialization, not via configuration files. CIS 1.6 Benchmark - Self-Assessment maintain a configuration file for kube-apiserver. All configuration is passed in as arguments at container run time. Audit: /bin/sh -c 'if test -e /etc/kubernetes/manifests/kube- apiserver.yaml; then0 码力 | 132 页 | 1.12 MB | 1 年前3
共 19 条
- 1
- 2