OpenShift Container Platform 4.14 Operator
operators.operatorframework.io.bundle.metadata.v1: "metadata/" 3 operators.operatorframework.io.bundle.package.v1: "test-operator" 4 operators.operatorframework.io.bundle.channels.v1: "beta,stable" 5 operators 文件中。此文件是可选的,目 前仅用于指明 Operator-version 依赖项。 依赖项列表中,每个项目包含一个 type 字段,用于指定这一依赖项的类型。支持以下 Operator 依赖项: olm.package 这个类型表示特定 Operator 版本的依赖项。依赖项信息必须包含软件包名称以及软件包的版本,格式 为 semver。例如,您可以指定具体版本,如 0.5.2,也可指定一系列版本,如 >0 dependencies.yaml 文件示例 文件示例 其他 其他资源 源 Operator Lifecycle Manager 依赖项解析 dependencies: - type: olm.package value: packageName: prometheus version: ">0.27.0" - type: olm.gvk value:0 码力 | 423 页 | 4.26 MB | 1 年前3OpenShift Container Platform 4.13 CLI 工具
the configuration from all files that end with '.json' - i.e. expand wildcard characters in file names oc apply -f '*.json' # Note: --prune is still in Alpha # Apply the configuration in manifest ## If bash-completion is not installed on Linux, install the 'bash-completion' package ## via your distribution's package manager. ## Load the oc completion code for bash into the current shell source my-secret --from-file=path/to/bar # Create a new secret named my-secret with specified keys instead of names on disk oc create secret generic my-secret --from-file=ssh-privatekey=path/to/id_rsa --from-file=ssh-0 码力 | 128 页 | 1.11 MB | 1 年前3OpenShift Container Platform 4.10 CLI 工具
## If bash-completion is not installed on Linux, install the 'bash-completion' package ## via your distribution's package manager. ## Load the oc completion code for bash into the current shell source my-secret --from-file=path/to/bar # Create a new secret named my-secret with specified keys instead of names on disk oc create secret generic my-secret --from-file=ssh-privatekey=path/to/id_rsa --from-file=ssh- the JSON passed into stdin cat pod.json | oc delete -f - # Delete pods and services with same names "baz" and "foo" oc delete pod,service baz foo # Delete pods and services with label name=myLabel0 码力 | 120 页 | 1.04 MB | 1 年前3OpenShift Container Platform 4.8 CLI 工具
bash-completion is not installed on Linux, please install the 'bash-completion' package ## via your distribution's package manager. ## Load the oc completion code for bash into the current shell source my-secret --from-file=path/to/bar # Create a new secret named my-secret with specified keys instead of names on disk oc create secret generic my-secret --from-file=ssh-privatekey=path/to/id_rsa --from-file=ssh- the JSON passed into stdin. cat pod.json | oc delete -f - # Delete pods and services with same names "baz" and "foo" oc delete pod,service baz foo # Delete pods and services with label name=myLabel0 码力 | 152 页 | 1.24 MB | 1 年前3OpenShift Container Platform 4.6 发行注记
Operator 生命周期 1.2.11.1. Operator 版本依 版本依赖项 赖项 Operator 开发人员现在可以通过在 dependencies.yaml 文件中使用 olm.package 类型来确保 Operator 包含特定版本的依赖关系。 如需更多信息,请参阅 Operator Lifecycle Manager 依赖项。 1.2.11.2. Operator 捆绑 捆绑包中支持的其他 NamesAccepted Last Transition Time: 2020-07-02T05:50:41Z Message: the initial names have been accepted Reason: InitialNamesAccepted Status: App Registry 目录。 注意 注意 虽然红帽不会为 OpenShift Container Platform 4.6 及之后的版本发布 App Registry 目录 镜像,但基于 Package Manifest Format 的自定义目录镜像仍被支持。 如需有关捆绑格式和索引镜像的更多信息,请参阅 Operator Framework 打包格式。 重要的 重要的 Operator0 码力 | 91 页 | 1.15 MB | 1 年前3OpenShift Container Platform 4.7 镜像
--list OpenShift Container Platform 4.7 镜 镜像 像 56 这会在部署上设置 alpha.image.policy.openshift.io/resolve-names 注解。 启用 用镜像 像查询部署 部署 您可以禁用镜像查找。 要禁用镜像查找,使用 --enabled=false: $ oc set image-lookup deploy/mysql replicas: 1 template: metadata: annotations: alpha.image.policy.openshift.io/resolve-names: '*' spec: containers: - image: mysql:latest imagePullPolicy: Always clone https://github.com/openshift/openshift-jee-sample.git ." sh "mvn -B -Popenshift package" sh "oc start-build -F openshift-jee-sample-docker --from-file=target/ROOT.war"0 码力 | 123 页 | 1.20 MB | 1 年前3OpenShift Container Platform 4.9 构建应用程序
表 3.1. new-app检测到的语言 语 语言 言 文件 文件 dotnet project.json、*.csproj jee pom.xml nodejs app.json、package.json perl cpanfile、index.pl php composer.json、index.php python requirements.txt、setup.py ruby - get - list EOD $ oc get subs -n openshift-operators NAME PACKAGE SOURCE CHANNEL postgresql-operator-dev4devs-com po 闲置应用程序包括查找与服务关联的可扩展资源(部署配置和复制控制器等)。闲置应用程序时会查找相 关的服务,将其标记为空闲,并将资源缩减为零个副本。 您可以使用 oc idle 命令来闲置单个服务,或使用 --resource-names-file 选项来闲置多个服务。 14.1.1. 闲置一个服务 流程 1. 要闲置一个服务,请运行: 14.1.2. 闲置多个服务 如果应用程序横跨一个项目中的一组服务,闲置多个服务会很有用处;或者,可以将闲置多个服务与脚本0 码力 | 184 页 | 3.36 MB | 1 年前3OpenShift Container Platform 4.10 构建应用程序
new-app检测 检测到的 到的语 语言 言 语 语言 言 文件 文件 dotnet project.json、*.csproj jee pom.xml nodejs app.json、package.json perl cpanfile、index.pl php composer.json、index.php python requirements.txt、setup.py ruby - get - list EOD $ oc get subs -n openshift-operators NAME PACKAGE SOURCE CHANNEL postgresql-operator-dev4devs-com po 闲置应用程序包括查找与服务关联的可扩展资源(部署配置和复制控制器等)。闲置应用程序时会查找相 关的服务,将其标记为空闲,并将资源缩减为零个副本。 您可以使用 oc idle 命令来闲置单个服务,或使用 --resource-names-file 选项来闲置多个服务。 15.1.1. 闲置一个服务 流程 流程 1. 要闲置一个服务,请运行: 15.1.2. 闲置多个服务 如果应用程序横跨一个项目中的一组服务,闲置多个服0 码力 | 198 页 | 3.62 MB | 1 年前3OpenShift Container Platform 4.7 架构
更新过程的一部分。部署之后,拉取、提取容 器镜像并将其写入磁盘,然后修改启动加载程序以启动到新版本。机器将以滚动方式重启并进入 更新,确保对集群容量的影响最小。 Bootupd 固件和 固件和 bootloader 更新 更新:Package manager 和混合系统(如如 rpm-ostree)不会更新 固件或者 bootloader。通过 bootupd,RHCOS 用户现在可以访问跨系统发行、系统分析操作系 统更新工具,该工具管理在现代架构中(如 openshift.io 1 spec: group: online.openshift.io 2 version: v1alpha1 3 scope: Cluster 4 names: plural: namespacereservations 5 singular: namespacereservation 6 kind: NamespaceReservation0 码力 | 55 页 | 1.16 MB | 1 年前3OpenShift Container Platform 4.10 架构
更新过程的一部分。部署之后,拉取、提取容 器镜像并将其写入磁盘,然后修改启动加载程序以启动到新版本。机器将以滚动方式重启并进入 更新,确保对集群容量的影响最小。 Bootupd 固件和 固件和 bootloader 更新 更新:Package manager 和混合系统(如如 rpm-ostree)不会更新 固件或者 bootloader。通过 bootupd,RHCOS 用户现在可以访问跨系统发行、系统分析操作系 统更新工具,该工具管理在现代架构中(如 openshift.io 1 spec: group: online.openshift.io 2 version: v1alpha1 3 scope: Cluster 4 names: plural: namespacereservations 5 singular: namespacereservation 6 kind: NamespaceReservation0 码力 | 63 页 | 1.40 MB | 1 年前3
共 30 条
- 1
- 2
- 3