OpenShift Container Platform 4.13 认证和授权
ServiceAccount 下查 看这些事件。 以下示例警告缺少正确 OAuth 重定向 URI 的服务帐户: 输 输出示例 出示例 运行 oc describe sa/account_name> 可以报告与给定服务帐户名称关联的任何 OAuth 事 件。 输 输出示例 出示例 下方列出可能的事件错误: 无重定向 无重定向 URI 注解或指定了无效的 注解或指定了无效的 ServiceAccount Warning NoSAOAuthRedirectURIs service-account-oauth-client-getter system:serviceaccount:myproject:proxy has no redirectURIs; set serviceaccounts -------- ------ ------- 3m 3m 1 service-account-oauth-client-getter Warning NoSAOAuthRedirectURIs system:servicea 0 码力 | 201 页 | 2.74 MB | 1 年前3OpenShift Container Platform 4.8 CLI 工具
cluster oc config use-context minikube # Show merged kubeconfig settings. oc config view # Show merged kubeconfig settings and raw certificate data. oc config view --raw # Get the password debug 启动用于调试的 pod 的新实例 用法示例 用法示例 # Create a new service account named my-service-account oc create serviceaccount my-service-account # Create a user with the username "ajones" and the display edit deployment/mydeployment -o yaml --save-config # Perform garbage collection with the default settings oc ex dockergc # Get output from running 'date' command from pod mypod, using the first container0 码力 | 152 页 | 1.24 MB | 1 年前3OpenShift Container Platform 4.13 CI/CD
Java 应用程序时,可以设置通过私钥访问的 Maven Central 或 JCenter 的私 有镜像。要从该私有镜像下载库,您必须提供以下内容: 1. 配置了镜像的 URL 和连接设置的 settings.xml 文件。 2. 设置文件中引用的私钥,例如 ~/.ssh/id_rsa。 为安全起见,不应在应用程序镜像中公开您的凭证。 示例中描述的是 Java 应用程序,但您可以使用相同的方法将 钥。如果您不想进行验证,请使用 opaque 类型,这也是默认类型。 指定以下一种类型来触发最小服务器端验证,确保 secret 数据中存在特定的键名称: kubernetes.io/service-account-token。使用服务帐户令牌。 kubernetes.io/dockercfg。将 .dockercfg 文件用于所需的 Docker 凭证。 kubernetes.io/dockerconfigjson。将 流程 将输入 secret 和配置映射添加到现有的 BuildConfig 对象中: 1. 如果 ConfigMap 对象不存在,则进行创建: 这会创建一个名为 settings-mvn 的新配置映射,其中包含 settings.xml 文件的纯文本内容。 提示 提示 您还可以应用以下 YAML 来创建配置映射: 2. 如果 Secret 对象不存在,则进行创建: 这会创建一个名为 secret-mvn0 码力 | 129 页 | 1.37 MB | 1 年前3OpenShift Container Platform 4.8 安装
添加可升级状态进行更改的注解后,可能需要几分钟时间。 4. 验证 CCO 是否可升级: a. 在 Web 控制台的 Administrator 视角中,导航至 Administration → Cluster Settings。 b. 要查看 CCO 状态详情,请点 Cluster Operators 列表中的 cloud-credential。 c. 如果 Conditions 部分中的 Upgradeable disableAllDefaultSources: true 来禁用默认目录的源: 提示 提示 或者,您可以使用 Web 控制台管理目录源。在 Administration → Cluster Settings → Global Configuration → OperatorHub 页面中,点 Sources 选项卡,其中可创建、删除、禁用和启用单独的 源。 4.7.11. OpenShift Container "ParameterKey": "RegisterNlbIpTargetsLambdaArn", 17 "ParameterValue": "arn:aws:lambda::<account_number>:function: -RegisterNlbIpTargets- " 18 }, { "ParameterKey": 0 码力 | 2586 页 | 27.37 MB | 1 年前3OpenShift Container Platform 4.14 安装
和 serviceaccount-signer.public 是生成的密钥文件。 此命令还会在 //tls/bound-service-account-signing-key.key 中 创建集群在安装过程中所需的私钥。 2. 运行以下命令,在 AWS 上创建 OpenID Connect 身份提供程序和 S3 存储桶: 是用于标记为跟踪而创建的云资源的名称。 at keys.json updated 2021/04/13 11:16:18 Identity Provider created with ARN: arn:aws:iam:: account_id>:oidc-provider/ -oidc.s3. .amazonaws.com $ RELEASE_IMAGE=$(./openshift-install --credentials-requests-dir= \ --identity-provider-arn=arn:aws:iam:: account_id>:oidc-provider/ -oidc.s3. .amazonaws.com $ ls /manifests 0 码力 | 3881 页 | 39.03 MB | 1 年前3OpenShift Container Platform 4.10 安装
disableAllDefaultSources: true 来 来 禁用默认目录的源: 提示 提示 或者,您可以使用 Web 控制台管理目录源。在 Administration → Cluster Settings → Configuration → OperatorHub 页面中,点 Sources 选项卡,您可以在其中创建、删除、禁用和启用单独的源。 5.7.11. OpenShift Container "ParameterKey": "RegisterNlbIpTargetsLambdaArn", 17 "ParameterValue": "arn:aws:lambda::<account_number>:function: -RegisterNlbIpTargets- " 18 }, { "ParameterKey": "ParameterKey": "ExternalApiTargetGroupArn", 19 "ParameterValue": "arn:aws:elasticloadbalancing: : <account_number>:targetgroup/ -Exter- " 20 }, { "ParameterKey": "Int 0 码力 | 3142 页 | 33.42 MB | 1 年前3OpenShift Container Platform 4.13 安装
disableAllDefaultSources: true 来 来 禁用默认目录的源: 提示 提示 或者,您可以使用 Web 控制台管理目录源。在 Administration → Cluster Settings → Configuration → OperatorHub 页面中,点 Sources 选项卡,您可以在其中创建、更新、删除、禁用和启用单独的源。 6.7.11. OpenShift Container "ParameterKey": "RegisterNlbIpTargetsLambdaArn", 17 "ParameterValue": "arn:aws:lambda::<account_number>:function: -RegisterNlbIpTargets- " 18 }, { "ParameterKey": "ExternalApiTargetGroupArn", 19 "ParameterValue": "arn:aws:elasticloadbalancing: : <account_number>:targetgroup/ -Exter- " 20 }, { "ParameterKey": "Int 0 码力 | 4634 页 | 43.96 MB | 1 年前3OpenShift Container Platform 4.10 CLI 工具
cluster oc config use-context minikube # Show merged kubeconfig settings oc config view # Show merged kubeconfig settings and raw certificate data oc config view --raw # Get the password service nodeport my-ns --tcp=5678:8080 # Create a new service account named my-service-account oc create serviceaccount my-service-account # Create a user with the username "ajones" and the display sa1 and sa2 can admit a pod with a template pod spec specified in my_resource.yaml # Service Account specified in myresource.yaml file is ignored oc policy scc-review -z sa1,sa2 -f my_resource.yaml0 码力 | 120 页 | 1.04 MB | 1 年前3OpenShift Container Platform 4.13 CLI 工具
cluster oc config use-context minikube # Show merged kubeconfig settings oc config view # Show merged kubeconfig settings and raw certificate data and exposed secrets 第 第 2 章 章 OPENSHIFT CLI Create a new service account named my-service-account oc create serviceaccount my-service-account # Request a token to authenticate to the kube-apiserver as the service account "myapp" in the OpenShift pod 的新实例 用法示例 用法示例 current namespace oc create token myapp # Request a token for a service account in a custom namespace oc create token myapp --namespace myns # Request a token with a custom0 码力 | 128 页 | 1.11 MB | 1 年前3OpenShift Container Platform 4.7 安装
7 安装 安装 92 更新凭证。 使用 Web 控制台的 Administrator 视角来判断 CCO 是否可以升级。 1. 导航至 Administration → Cluster Settings。 2. 要查看 CCO 状态详情,请点 Cluster Operators 列表中的 cloud-credential。 3. 如果 Conditions 部分中的 Upgradeable disableAllDefaultSources: true 来禁用默认目录的源: 提示 提示 或者,您可以使用 Web 控制台管理目录源。在 Administration → Cluster Settings → Global Configuration → OperatorHub 页面中,点 Sources 选项卡,其中可创建、删除、禁用和启用单独的 源。 4.7.11. OpenShift Container "ParameterKey": "RegisterNlbIpTargetsLambdaArn", 17 "ParameterValue": "arn:aws:lambda::<account_number>:function: 第 第 4 章 章 在 在 AWS 上安装 上安装 337 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 码力 | 2276 页 | 23.68 MB | 1 年前3
共 47 条
- 1
- 2
- 3
- 4
- 5