OpenShift 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 catch all ingress of "/path" pointing to service svc:port and Ingress Class as "otheringress" oc create ingress catch-all --class=otheringress --rule="/path=svc:port" # Create an ingress with two two annotations: ingress.annotation1 and ingress.annotations2 oc create ingress annotated --class=default --rule="foo.com/bar=svc:port" \ --annotation ingress.annotation1=foo \ 第 第 2 章 章 OPENSHIFT CLI0 码力 | 128 页 | 1.11 MB | 1 年前3
OpenShift Container Platform 4.10 CLI 工具catch all ingress of "/path" pointing to service svc:port and Ingress Class as "otheringress" oc create ingress catch-all --class=otheringress --rule="/path=svc:port" # Create an ingress with two two annotations: ingress.annotation1 and ingress.annotations2 oc create ingress annotated --class=default --rule="foo.com/bar=svc:port" \ --annotation ingress.annotation1=foo \ --annotation ingress annotation2=bla # Create an ingress with the same host and multiple paths oc create ingress multipath --class=default \ --rule="foo.com/=svc:port" \ --rule="foo.com/admin/=svcadmin:portadmin" # Create0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift Container Platform 4.8 CLI 工具catch all ingress of "/path" pointing to service svc:port and Ingress Class as "otheringress" oc create ingress catch-all --class=otheringress --rule="/path=svc:port" # Create an ingress with two two annotations: ingress.annotation1 and ingress.annotations2 oc create ingress annotated --class=default --rule="foo.com/bar=svc:port" \ --annotation ingress.annotation1=foo \ --annotation ingress annotation2=bla # Create an ingress with the same host and multiple paths oc create ingress multipath --class=default \ --rule="foo.com/=svc:port" \ --rule="foo.com/admin/=svcadmin:portadmin" # Create0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 4.14 Operatorpresent in the entry list. replaces?: string & !="" // skips is optional. It is a list of bundle names that are skipped by // this entry. The skipped bundles do not have to be present in the // entry 了解 了解 OPERATOR 15 olm.package 属性定义软件包名称和版本。这是捆绑包上的必要属性,必须正好有一个这些属 性。packageName 字段必须与捆绑包的 first-class package 字段匹配,并且 version 字段必须是有效的 语义版本。 例 例 2.4. olm.package 属性 属性 2.2.2.3.2. olm.gvk 属性 属性 olm example.com 2 spec: group: stable.example.com 3 versions: name: v1 4 scope: Namespaced 5 names: plural: crontabs 6 singular: crontab 7 kind: CronTab 8 shortNames: - ct 9 第0 码力 | 423 页 | 4.26 MB | 1 年前3
OpenShift Container Platform 4.8 存储Container Platform 支持许多类型的存储,包括内部存储和云供应商。您可以在 OpenShift Container Platform 集群中管理持久性和非持久性数据的容器存储。 Storage class 存储类为管理员提供了描述它们所提供的存储类的方法。不同的类可能会映射到服务质量级别、备份 策略,以及由集群管理员决定的任意策略。 VMware vSphere 的虚 的虚拟 拟机磁 机磁盘 盘 1. 在 OpenShift Container Platform 控制台中点击 Storage→ Storage Classes。 2. 在存储类概述中,点击 Create Storage Class。 3. 在出现的页面中定义所需选项。 a. 输入一个名称来指代存储类。 b. 输入描述信息(可选)。 c. 选择 reclaim 策略。 d. 从下拉列表中选择 kubernetes.io/aws-ebs。 1. 在 OpenShift Container Platform 控制台中点击 Storage→ Storage Classes。 2. 在存储类概述中,点击 Create Storage Class。 3. 在出现的页面中定义所需选项。 a. 输入一个名称来指代存储类。 b. 输入描述信息(可选)。 c. 选择 reclaim 策略。 d. 从下拉列表中选择 kubernetes.io/azure-disk0 码力 | 118 页 | 1.60 MB | 1 年前3
OpenShift Container Platform 4.9 构建应用程序项目中可以存在的持久性卷声明的总数。 第 第 8 章 章 配 配额 额 123class- name>.storageclass.st orage.k8s.io/requests. storage 在处于任何状态且具有匹配存储类的所有持久性卷声明中,存储请求总和不能超 过这个值。 class- name>.storageclass.st orage.k8s.io/persistent 闲置应用程序包括查找与服务关联的可扩展资源(部署配置和复制控制器等)。闲置应用程序时会查找相 关的服务,将其标记为空闲,并将资源缩减为零个副本。 您可以使用 oc idle 命令来闲置单个服务,或使用 --resource-names-file 选项来闲置多个服务。 14.1.1. 闲置一个服务 流程 1. 要闲置一个服务,请运行: 14.1.2. 闲置多个服务 如果应用程序横跨一个项目中的一组服务,闲置多个服务会很有用处;或者,可以将闲置多个服务与脚本 有用处;或者,可以将闲置多个服务与脚本 结合使用,以便批量闲置同一项目中的多个应用程序。 流程 1. 创建一个包含服务列表的文件,每个服务各自列于一行。 2. 使用 --resource-names-file 选项闲置这些服务: 注意 注意 idle 命令仅限于一个项目。若要闲置一个集群中的多个应用程序,可以分别对各个项目运 行 idle 命令。 14.2. 取消闲置应用程序 当应用 0 码力 | 184 页 | 3.36 MB | 1 年前3
OpenShift Container Platform 4.10 构建应用程序项目中可以存在的持久性卷声明的总数。 第 第 9 章 章 配 配额 额 137class- name>.storageclass.st orage.k8s.io/requests. storage 在处于任何状态且具有匹配存储类的所有持久性卷声明中,存储请求总和不能超 过这个值。 class- name>.storageclass.st orage.k8s.io/persistent 闲置应用程序包括查找与服务关联的可扩展资源(部署配置和复制控制器等)。闲置应用程序时会查找相 关的服务,将其标记为空闲,并将资源缩减为零个副本。 您可以使用 oc idle 命令来闲置单个服务,或使用 --resource-names-file 选项来闲置多个服务。 15.1.1. 闲置一个服务 流程 流程 1. 要闲置一个服务,请运行: 15.1.2. 闲置多个服务 如果应用程序横跨一个项目中的一组服务,闲置多个服 ;或者,可以将闲置多个服务与脚本 结合使用,以便批量闲置同一项目中的多个应用程序。 流程 流程 1. 创建一个包含服务列表的文件,每个服务各自列于一行。 2. 使用 --resource-names-file 选项闲置这些服务: 注意 注意 idle 命令仅限于一个项目。若要闲置一个集群中的多个应用程序,可以分别对各个项目运 行 idle 命令。 15.2. 取消闲置应用程序 当应用 0 码力 | 198 页 | 3.62 MB | 1 年前3
OpenShift Container Platform 4.7 安装27 characters. Description: A short, representative cluster name to use for host names and other identifying names. Type: String InfrastructureName: AllowedPattern: ^([a-zA-Z][a-zA-Z0-9\-]{0 27 characters. Description: A short, representative cluster name to use for host names and other identifying names. Type: String InfrastructureName: AllowedPattern: ^([a-zA-Z][a-zA-Z0-9\-]{0 valid URI of "http://", which is the required format used for service principal names Retrying role assignment creation: 1/36 Retrying role assignment creation: 2/36 Retrying role assignment 0 码力 | 2276 页 | 23.68 MB | 1 年前3
OpenShift Container Platform 4.14 存储Container Platform 支持许多类型的存储,包括内部存储和云供应商。您可以在 OpenShift Container Platform 集群中管理持久性和非持久性数据的容器存储。 Storage class 存储类为管理员提供了描述它们所提供的存储类的方法。不同的类可能会映射到服务质量级别、备份 策略,以及由集群管理员决定的任意策略。 VMware vSphere 的虚 的虚拟机磁 机磁盘 (VMDK) EOF | oc create -f - apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name:class-name> 1 parameters: fsType: ext4 2 encrypted: "true" kmsKeyId: keyvalue 3 provisioner: ebs.csi mypvc spec: accessModes: - ReadWriteOnce volumeMode: Filesystem storageClassName: class-name> resources: requests: storage: 1Gi EOF $ cat << EOF | oc create -f - kind: Pod metadata: 0 码力 | 215 页 | 2.56 MB | 1 年前3
OpenShift Container Platform 4.8 安装27 characters. Description: A short, representative cluster name to use for host names and other identifying names. Type: String InfrastructureName: AllowedPattern: ^([a-zA-Z][a-zA-Z0-9\-]{0 27 characters. Description: A short, representative cluster name to use for host names and other identifying names. Type: String InfrastructureName: 第 第 4 章 章 在 在 AWS 上安装 上安装 389 AllowedPattern: valid URI of "http://", which is the required format used for service principal names Retrying role assignment creation: 1/36 Retrying role assignment creation: 2/36 Retrying role assignment 0 码力 | 2586 页 | 27.37 MB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













