企业云原生的探索与落地深圳沙龙-RacherLabs-20-11-14/小程序+容器:前端后端全链路敏捷化
动态性 移动应用开发技术分析 如何保障APP可以快速、动 态的更新 保障APP动态更新的情况 下,如何保证用户体验 缺乏客户端经验的开发者, 如何做到业务极速迭代 如何丰富现有功能,开放自 己的业务生态 百万级日活 高频发版需求 业务功能单一 业务模块繁杂 移动应用转型升级过程中存在的顾虑 #小程序发展趋势# 小程序数量 DAU MAU 人均单日使用时长 数据来源:微 全部可以被索引到,我们可以更进一步通过特殊的索 引服务支持互联网搜索引擎的索引。 外卖 理财 理财 理财 理财 微信 抖音 外卖 外卖 外卖 APP组件化,各功能松散耦合,实现敏捷迭代 松散耦合 用灵活的业务封装来应对市场的快速变化和不确定性, 场景化功能用小程序的形式实现,各功能互相独立,松 散耦合。支持SDK扩展,丰富小程序能力。 敏捷迭代 有效实现持续交付,缩减新功能的开发、测试、 发布耗时。主动变化、快速响应,让整个团队敏 应用管理 页面管理 路由管理 H5渲染 Native渲染 JavaScript Core 基础库 生命周期 事件管理 虚拟DOM API接口 渲染模板 基础能力 网络 缓存 定位 多媒体 文件 分享 基础组件 热更新 灰度 调试 特色能力 合规监管 集中管控 交易留痕 原生接口注入 加密存储 数据隔离 流程管理 机构自有系统 运维支撑 国 密 算 法 社区支持0 码力 | 27 页 | 3.74 MB | 1 年前3企业云原生的探索与落地深圳沙龙-RacherLabs-20-11-14/安信证券DevOps探索与实践
投入,并提出数字化转型的战略,IT的自 主研发实力代表IT自主可控的核心竞争力, 是业务开展的速度、广度以及深度的保证, 这恰恰是行业所缺失的 IT规模扩展带来的管理问题: 近年证券行业的IT规模不断扩展,特别是在自 研领域,系统建设模式逐步转变为自主研发、 合作研发为主,开发团队规模逐渐壮大,安信 目前自主研发和合作研发的比例已经超过50%, 研发团队也超过了500人,各个二级团队都有 自研的项目,亟待建立研发管理体系,统一研 Svn 代码管理 构建与依赖 单元测试 代码扫描 安全 AWVS Burp Suit NPM Jacoco 发布 ITIL 1 ◼ 自主可控,又有核心竞争力 ◼ 高成本,高投入 自研 2 ◼ 经过长期积累 ◼ 可能会水土不服 ◼ 定制成本高 成熟产品 3 ◼ 基于原有经验积累 ◼ 快速补齐能力短板 基于开源及商业工具自建 ⚫ 工具平台建设初期方案选择 ⚫ 工具平台建设初期工具使用情况 全流程可追溯:当出现问题,能够追溯源代码、测试报告、运行环境等数据。 针对任意需求,能够快速识别出其关联的源代码、版本、测试用例、上线记 录、缺陷信息等。 将一切纳入版本控制 ⚫ 源代码 ⚫ 配置文件 ⚫ 数据库脚本 ⚫ 部署脚本 ⚫ Dockerfile, Helm Charts ⚫ ... 版本变更标准化 单一可信数据源 ⚫ 代码提交记录与需求的 双向关联 ⚫ 统一的两方库、三方库0 码力 | 27 页 | 2.42 MB | 1 年前3企业云原生的探索与落地深圳沙龙-RacherLabs-20-11-14/应用容器化最佳实践
Confidential 制作容器镜像 Dockerfile常用命令: • FROM:指定容器基础镜像 • LABEL:给镜像打上标签,比如添加镜像维护者信息 • ADD:向镜像添加文件,可以使用URL • COPY:向镜像添加文件,不可以使用URL,不会解压缩 • ENV:设置环境变量,可以被后面的指令使用 • RUN:用于容器中运行指定命令,每一次都会生成新的镜像层 • USER : 指定RU tices/ 使用更小的base镜像 使用体积小的base镜像,如:Alpine、 Busybox、Scratch 多阶段构建 支持多个FROM,一个用于编译,另 外一个将编译后的可执行文件打入镜 像,减少体积 串联Dockerfile 命令 因为每一个RUN命令对应新的镜像层, 我们应该将多个命令通过&&等方式组 成同一行命令,减少镜像层数 缓存清理 执行一些安装命令如yum 通过ConfigMap管理可变应用配置 一般应用普遍会有从配置文件、命令行参数或者环境变量中读取一些配置信息的需求,Kubernetes提供了 ConfigMap资源对象来实现配置管理,可以通过以下几种方式来使用ConfigMap配置Pod中的容器: • 容器 entrypoint 的命令行参数 • 容器的环境变量 • 在只读卷里面添加一个文件,应用读取 • 编写代码在 Pod 中运行,应用通过使用0 码力 | 28 页 | 3.47 MB | 1 年前3Rancher 用户手册 v1.0
添加附加容器(Sidecar) .................................. 25 第 3 页 共 35 页 6.6. 查看应用 yaml 配置文件 .................................... 27 6.7. 应用配置导出 ........................................... 根据应用不同耗时会不同,但相对就绪检查会耗时更长。 数据卷 此功能为工作负载(应用)添加存储,您可以手动指定要添加的卷,或使用持久卷声明为工作 负载动态创建卷,或从诸如 ConfigMap 之类的文件中读取要使用的卷的数据。 临时卷 顾名思义,临时卷将会是临时的存储数据,当 Pod 被重建或删除时,相应卷也会被重建或 删除,卷中的数据将会丢失。 添加步骤: a) 选择添加临时卷 d) 用户 UID:对应 Docker --user 命令; e) 控制台:对应 Docker -t 或者-i 命令; f) 自动重启:对应 Docker --restart 命令; g) 文件系统组:对应 Docker --group-add 命令; h) 停止超时:将会在容器上添加标签 annotation.io.kubernetes.pod.terminationGracePeriod=xx;0 码力 | 35 页 | 6.47 MB | 1 年前3Deploying and ScalingKubernetes with Rancher
Redis Slave: Redis slave is used to read data by frontend. We are going to scale this to two nodes so a load balancer will be needed. 3.2 Designing a Kubernetes service for an Application Services Since the (pod) selector does not exist in these cases, we have to manually create the EndPoint object so that the service refers to external service. The service definition remains in same format except are unable to add the same Deployment throught the UI, as it will conflict with the previous name. So let’s execute the following command in kubectl: kubectl edit deployment/nginx-deployment This0 码力 | 66 页 | 6.10 MB | 1 年前3[Buyers Guide_DRAFT_REVIEW_V3] Rancher 2.6, OpenShift, Tanzu, Anthos
BYOH feature allows operators to use different platforms and operating systems; however, in doing so, operators will lose access to some features of Tanzu. Upgrades are bound to the version of the the environment uses Tanzu Mission Control (TMC), a VMware SaaS offering for cluster management. If so, then TMC acts as the management cluster and can provision and manage downstream TKG clusters. 3 does not provide its own registry solutions but partners with multiple technology providers to do so. 3.1.11.2 OpenShift OpenShift contains full support for private registries and includes a local0 码力 | 39 页 | 488.95 KB | 1 年前3Cloud Native Contrail Networking Installation and Life Cycle ManagementGuide for Rancher RKE2
centralized control and scalability Before You Install 1. Set up an account with Juniper Networks so you can download CN2 manifests from the Juniper Networks download site (https://support.juniper.ne contrail-tools/contrail-readiness directory from the downloaded CN2 Tools package. 2. If you haven't already done so, ensure you've populated the tools manifests with your repository login credentials. See "Configure contrail-tools/contrail-readiness directory from the downloaded CN2 Tools package. 2. If you haven't already done so, ensure you've populated the manifests with your repository login credentials. See "Configure Repository0 码力 | 72 页 | 1.01 MB | 1 年前3Rancher Hardening Guide v2.3.5
false Create a bash script file called account_update.sh. Be sure to chmod +x account_update.sh so the script has execute permissions. #!/bin/bash -e for namespace in $(kubectl get namespaces -A -o file called apply_networkPolicy_to_all_ns.sh. Be sure to chmod +x apply_networkPolicy_to_all_ns.sh so the script has execute permissions. #!/bin/bash -e for namespace in $(kubectl get namespaces -A -o0 码力 | 21 页 | 191.56 KB | 1 年前3Rancher Hardening Guide v2.4
false Create a bash script file called account_update.sh. Be sure to chmod +x account_update.sh so the script has execute permissions. #!/bin/bash -e for namespace in $(kubectl get namespaces -A -o file called apply_networkPolicy_to_all_ns.sh. Be sure to chmod +x apply_networkPolicy_to_all_ns.sh so the script has execute permissions. Hardening Guide v2.4 6 #!/bin/bash -e for namespace in $(kubectl0 码力 | 22 页 | 197.27 KB | 1 年前3Rancher Hardening Guide Rancher v2.1.x
Rancher server installation using Helm, and configure the audit log settings. The instructions for doing so can be found in the reference section below. Reference https://rancher.com/docs/rancher/v2.x/en/ an external authentication system to simplify user and group access in the Rancher cluster. Doing so assures that access control follows the organization's change management process for user accounts0 码力 | 24 页 | 336.27 KB | 1 年前3
共 16 条
- 1
- 2