OpenShift Container Platform 4.8 CLI 工具Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics "openshift/php" under tag "7.2" for "php" ... Run 'oc status' to view your app. $ oc get pods -o wide NAME READY STATUS RESTARTS AGE IP NODE optional argument handling if [[ "$1" == "config" ]] then echo $KUBECONFIG exit 0 fi echo "I am a plugin named kubectl-foo" $ chmod +x$ sudo mv /usr/local/bin/. 0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 4.7 镜像Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics 设置环境变量 避免默认密码 避免 sshd 对持久性数据使用卷 4.1.2. OpenShift Container Platform 特定准则 启用 Source-to-Image (S2I) 的镜像 支持任意用户 id 使用服务进行镜像间通信 提供通用库 使用环境变量进行配置 设置镜像元数据 集群 日志记录 存活 (liveness) 和就绪 (readiness) 探针 模板 在镜像流中保留已弃用的镜像流标签,因为用户可能有使用已弃用的镜像流标 签的部署。 $ oc edit configs.samples.operator.openshift.io/cluster -o yaml apiVersion: samples.operator.openshift.io/v1 kind: Config ... OpenShift Container Platform 40 码力 | 123 页 | 1.20 MB | 1 年前3
OpenShift Container Platform 4.2 镜像Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics 3.8. 镜像流镜像 3.9. 镜像流触发器 3.10. 其它资源 第 第 4 章 章 创 创建 建镜 镜像 像 4.1. 学习容器最佳实践 4.2. 包括镜像中的元数据 4.3. 测试 S2I 镜像 第 第 5 章 章 管理 管理镜 镜像 像 5.1. 管理镜像概述 5.2. 标记镜像 5.3. 镜像拉取(PULL)策略 5.4. 使用镜像 PULL SECRET 第 第 6 章 章 (CLI),通常称为 oc。 流程 流程 访问 Samples Operator 配置: $ oc get configs.samples.operator.openshift.io/cluster -o yaml Samples Operator 配置类似以下示例: OpenShift Container Platform 4.2 镜 镜像 像 6 apiVersion: samples.operator0 码力 | 92 页 | 971.35 KB | 1 年前3
OpenShift Container Platform 4.14 OperatorLinux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics OPERATOR SDK CLI 5.3. 基于 GO 的 OPERATOR 5.4. 基于 ANSIBLE 的 OPERATOR 5.5. 基于 HELM 的 OPERATOR 5.6. 基于 JAVA 的 OPERATOR 5.7. 定义集群服务版本(CSV) 5.8. 使用捆绑包镜像 5.9. 遵守 POD 安全准入 5.10. 云供应商上的 OPERATOR 的令牌身份验证 5.11 作为开发人员,您可以执行以下 Operator 任务: 安装 Operator SDK CLI。 创建 Go-based Operators, Ansible-based Operators, Java-based Operators, 和 Helm-based Operators。 使用 Operator SDK 来构建、测试并部署 Operator。 安装 Operator 并订阅命名空间。0 码力 | 423 页 | 4.26 MB | 1 年前3
OpenShift Container Platform 4.4 构建(build)Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics 构建输出 4.2. 输出镜像环境变量 4.3. 输出镜像标签 第 第 5 章 章 使用 使用构 构建策略 建策略 5.1. DOCKER 构建 5.2. SOURCE-TO-IMAGE (S2I) 构建 5.3. CUSTOM 构建 5.4. PIPELINE 构建 5.5. 使用 WEB 控制台添加 SECRET 5.6. 启用拉取 (PULL) 和推送 (PUSH) 第 第 6 章 章 中指定的可选 择类型。可用的构建策略主要有三种: Docker 构建 Source-to-Image (S2I) 构建 Custom 构建 默认情况下,支持 Docker 构建和 S2I 构建。 构建生成的对象取决于用于创建它的构建器(builder)。对于 Docker 和 S2I 构建,生成的对象为可运行 的镜像。对于 Custom 构建,生成的对象是构建器镜像作者指定的任何事物。 此外,也可利用0 码力 | 101 页 | 1.12 MB | 1 年前3
OpenShift Container Platform 4.14 镜像Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics Source-to-Image (Non-S2I) 镜像流和模板 提供以下更新: 新镜像流和模板 更新现有镜像流和模板,除非它是 CVE 更新 根据 OpenShift Container Platform 生命周期策略日期和支持指南,Cluster Samples Operator 将提供对 Non-S2I 镜像流和模板的支持。 Cluster Samples Operator 将继续支持 S2I 构建器镜像和模板,并接受更新。S2I 构建器镜像和模板,并接受更新。S2I 镜像流和模板包括: Ruby Python Node.js Perl PHP HTTPD Nginx EAP Java Webserver .NET Go 从 OpenShift Container Platform 4.16 开始,Cluster Samples Operator 将停止管 理非 S2I 镜像流和模板。您可以联系镜像流或模板所有者以获取任何要求和将来的0 码力 | 118 页 | 1.13 MB | 1 年前3
OpenShift Container Platform 4.13 CI/CDLinux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics 署之后,BuildConfig 对象通常构建可运行的镜像并将其推送到容器镜像 registry。 OpenShift 构建为构建策略提供以下可扩展的支持: Docker 构建 Source-to-image(S2I)构建 Custom 构建 如需更多信息,请参阅了解镜像构建 1.2. OPENSHIFT PIPELINES OpenShift Pipelines 提供了一个 Kubernetes 原生 CI/CD 中指定的可选 择类型。可用的构建策略主要有三种: Docker 构建 Source-to-image(S2I)构建 Custom 构建 默认情况下,支持 docker 构建和 S2I 构建。 构建生成的对象取决于用于创建它的构建器(builder)。对于 docker 和 S2I 构建,生成的对象为可运行 的镜像。对于自定义构建,生成的对象是构建器镜像作者指定的任何事物。 此外,也可利用管道构建策略来实现复杂的工作流:0 码力 | 129 页 | 1.37 MB | 1 年前3
OpenShift Container Platform 4.9 构建应用程序Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics 使用 Web 控制台或 CLI 编辑项目配置资源。 使用 Web 控制台: i. 导航至 Administration → Cluster Settings 页面。 ii. 单击 Configuration 以查看所有配置资源。 $ oc adm create-bootstrap-project-template -o yaml > template.yaml $ oc create -f template OpenShift Container Platform 4.9 构 构建 建应 应用程序 用程序 12 iii. 找到 Project 的条目,并点击 Edit YAML。 使用 CLI: i. 编辑 project.config.openshift.io/cluster 资源: 6. 更新 spec 部分,使其包含 projectRequestTemplate 和 name 参数,再设置您上传的项目模板0 码力 | 184 页 | 3.36 MB | 1 年前3
OpenShift Container Platform 3.11 开始使用Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics psacct # yum -y update # reboot # yum -y install openshift-ansible 现在安装一个容器引擎: 安装 CRI-O: # yum -y install cri-o 安装 Docker: # yum -y install docker 2.1.5. 设置无密码 SSH 访问 在 master 上运行安装程序前,请设置无密码 SSH $ for host in master.openshift.example.com \ node.openshift.example.com; \ do ssh-copy-id -i ~/.ssh/id_rsa.pub $host; \ done 2.1.6. 运行 Installation Playbook 1. 请参阅 清单文件实例,并选择最接近您所需集群配置的示例。0 码力 | 24 页 | 290.05 KB | 1 年前3
OpenShift Container Platform 4.10 构建应用程序Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics 使用 Web 控制台或 CLI 编辑项目配置资源。 使用 Web 控制台: i. 导航至 Administration → Cluster Settings 页面。 ii. 单击 Configuration 以查看所有配置资源。 $ oc adm create-bootstrap-project-template -o yaml > template.yaml $ oc create -f template OpenShift Container Platform 4.10 构 构建 建应 应用程序 用程序 12 iii. 找到 Project 的条目,并点击 Edit YAML。 使用 CLI: i. 编辑 project.config.openshift.io/cluster 资源: 6. 更新 spec 部分,使其包含 projectRequestTemplate 和 name 参数,再设置您上传的项目模板0 码力 | 198 页 | 3.62 MB | 1 年前3
共 75 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













