OpenShift Container Platform 4.10 CLI 工具Request a new project new-app Create a new application ... $ oc create --help Create a resource by filename or stdin JSON and YAML formats are accepted. Usage: oc create -f FILENAME [flags] Pod VERSION: v1 DESCRIPTION: Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. FIELDS: apiVersionAPIVersion running nginx' # Update pod 'foo' only if the resource is unchanged from version 1 oc annotate pods foo description='my frontend running nginx' --resource-version=1 # Update pod 'foo' by removing an 0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift Container Platform 4.13 CLI 工具以结束当前会话。 使用oc logout命令。 输 输出示例 出示例 这将从服务器中删除已保存的身份验证令牌,并将其从配置文件中删除。 $ oc create --help Create a resource by filename or stdin JSON and YAML formats are accepted. Usage: oc create -f FILENAME [flags] Pod VERSION: v1 DESCRIPTION: Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. FIELDS: apiVersionAPIVersion running nginx' # Update pod 'foo' only if the resource is unchanged from version 1 oc annotate pods foo description='my frontend running nginx' --resource-version=1 # Update pod 'foo' by removing an 0 码力 | 128 页 | 1.11 MB | 1 年前3
OpenShift Container Platform 4.8 CLI 工具Request a new project new-app Create a new application ... $ oc create --help Create a resource by filename or stdin JSON and YAML formats are accepted. Usage: oc create -f FILENAME [flags] Pod VERSION: v1 DESCRIPTION: Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. FIELDS: apiVersionAPIVersion running nginx' # Update pod 'foo' only if the resource is unchanged from version 1. oc annotate pods foo description='my frontend running nginx' --resource-version=1 # Update pod 'foo' by removing an 0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 4.13 认证和授权Manager: oauth-server Operation: Update Time: 2021-01-11T19:27:06Z Resource Version: 30535 Self Link: /apis/oauth.openshift.io/v1/useroauthaccesstokens/- preferred_username name: - name email: - email groups: - groups issuer: https://www.idp-issuer.com 6 第 第 7 章 章 配置身份提供程序 配置身份提供程序 67 5 6 1 2 given_name - name email: 6 - custom_email_claim - email groups: 7 - groups issuer: https://www.idp-issuer.com OpenShift Container Platform 4.13 认证 认证和授 和授权 0 码力 | 201 页 | 2.74 MB | 1 年前3
OpenShift Container Platform 4.14 发行注记3. Operator 功能 功能 IBM Power® IBM Z® 和 和 IBM® LinuxONE Cluster Logging Operator 支持 支持 Cluster Resource Override Operator 支持 支持 Compliance Operator 支持 支持 File Integrity Operator 支持 支持 HyperShift Operator 如需更多信息,请参阅为不健康的 pod 指定驱除策略。 1.3.18.5. Linux Control Groups 版本 版本 2 现 现在是默 在是默认 认的 的 从 OpenShift Container Platform 4.14 开始,新安装默认使用 Control Groups 版本 2,也称为 cgroup v2、cgroup2 或 cgroupsv2。此功能增强包括很多 bug 下,OpenStack 云供应商现在将负载均衡器的 manage-security-groups 选项设为 true,确保只打开集 群操作所需的节点端口。在以前的版本中,compute 和 control plane 机器的安全组被配置为为所有传入 的流量打开大范围的节点端口。 您可以通过在负载均衡器配置中将 manage-security-groups 选项设置为 false 来使用以前的配置,并确 保安全组规则允许来自节点的0 码力 | 73 页 | 893.33 KB | 1 年前3
OpenShift Container Platform 4.14 Operator'True' type: Installed phase: Complete plan: - resolving: my-operator.v1.0.1 resource: group: operators.coreos.com kind: ClusterServiceVersion manifest: >- openshift-marketplace version: v1alpha1 status: Created - resolving: my-operator.v1.0.1 resource: group: apiextensions.k8s.io kind: CustomResourceDefinition OpenShift Container openshift-marketplace version: v1beta1 status: Created - resolving: my-operator.v1.0.1 resource: group: '' kind: ServiceAccount manifest: >- ... name: my-operator0 码力 | 423 页 | 4.26 MB | 1 年前3
OpenShift Container Platform 4.10 构建应用程序窗口的默认持续时间为 60s。这也被称为 stable 窗口。 资 资源限 源限值 值 OpenShift Container Platform 4.10 构 构建 建应 应用程序 用程序 20 点击 Resource Limit 链接,设置容器在运行时保证或允许使用的 CPU 和 Memory 资源的数量。 标签 标签 点击 Labels 链接,为您的应用程序添加自定义标签。 1. 单击 Create forbidden: User "system:serviceaccount:my-petclinic:service-binding-operator" cannot get resource "postgresclusters" in API group "postgres-operator.crunchydata.com" in the namespace "my-petclinic"` forbidden: User "system:serviceaccount:my-petclinic:service-binding-operator" cannot get resource "postgresclusters" in API group "postgres-operator.crunchydata.com" in the namespace "my-petclinic"`0 码力 | 198 页 | 3.62 MB | 1 年前3
OpenShift Container Platform 4.9 构建应用程序panic 模式时提供缩放决策的输 入。如果在此窗口中没有收到任何请求,服务将缩减为零。autoscale 窗口的默认持续时间为 60s。这也被称为 stable 窗口。 资源限值 点击 Resource Limit 链接,设置容器在运行时保证或允许使用的 CPU 和 Memory 资源的数量。 标签 点击 Labels 链接,为您的应用程序添加自定义标签。 1. 点击 Create,以创建应用程序并在 forbidden: User "system:serviceaccount:my-petclinic:service-binding-operator" cannot get resource "postgresclusters" in API group "postgres-operator.crunchydata.com" in the namespace "my-petclinic"` name: hippo application: 3 name: spring-petclinic group: apps version: v1 resource: deployments EOD OpenShift Container Platform 4.9 构 构建 建应 应用程序 用程序 50 2 3 数据库的 CR。 示例应用程序,指向带有嵌入式0 码力 | 184 页 | 3.36 MB | 1 年前3
OpenShift Container Platform 4.7 安装Allow action: - iam:GetUser - iam:GetUserPolicy - iam:ListAccessKeys resource: "*" $ openshift-install create cluster --dirOpenShift Container Platform Statement: - Effect: Allow Principal: '*' Action: - '*' Resource: - '*' RouteTableIds: OpenShift Container Platform 4.7 安装 安装 306 其他 其他资 资源 源 Targets", "elasticloadbalancing:DeregisterTargets", ] Resource: !Ref InternalApiTargetGroup - Effect: "Allow" Action: [ 0 码力 | 2276 页 | 23.68 MB | 1 年前3
OpenShift Container Platform 4.8 日志记录OpenShift Logging 实例: a. 切换到 Administration → Custom Resource Definitions 页面。 b. 在 Custom Resource Definitions 页面上,点 ClusterLogging。 c. 在 Custom Resource Definition details 页中,从 Actions 菜单中选择 View Instances。 logs ruby-58cd97df55-mww7r $ oc logs -f ruby-57f7f4855b-znl92 -c ruby $ oc logs/<resource_name> 1 $ oc logs deployment/ruby 第 第 5 章 章 查 查看 看资 资源的日志 源的日志 111 第 6 章 使用 KIBANA 查看集群日志 OpenShift audit - application outputRefs: - cw $ aws --output json logs describe-log-groups | jq .logGroups[].logGroupName "mycluster-7977k.application" "mycluster-7977k.audit" "mycluster-7977k 0 码力 | 223 页 | 2.28 MB | 1 年前3
共 52 条
- 1
- 2
- 3
- 4
- 5
- 6













