OpenShift Container Platform 4.13 认证和授权$ oc create configmap ca-config-map --from-file=ca.crt=/path/to/ca -n openshift-config apiVersion: v1 kind: ConfigMap metadata: name: ca-config-map namespace: openshift-config data: ca domainName: default 3 url: https://keystone.example.com:5000 4 ca: 5 name: ca-config-map tlsClientCert: 6 name: client-cert-secret tlsClientKey: 7 name: client-key-secret ssword> $ oc create configmap ca-config-map --from-file=ca.crt=/path/to/ca -n openshift-config apiVersion: v1 kind: ConfigMap metadata: name: ca-config-map namespace: openshift-config data: ca 0 码力 | 201 页 | 2.74 MB | 1 年前3
OpenShift Container Platform 4.8 CLI 工具username "ajones" and the display name "Adam Jones" oc create user ajones --full-name="Adam Jones" # Map the identity "acme_ldap:adamjones" to the user "ajones" oc create useridentitymapping acme_ldap:adamjones directory oc extract secret/test # Extract the config map "nginx" to the /tmp directory oc extract configmap/nginx --to=/tmp # Extract the config map "nginx" to STDOUT oc extract configmap/nginx --to=- --to=- # Extract only the key "nginx.conf" from config map "nginx" to the /tmp directory oc extract configmap/nginx --to=/tmp --keys=nginx.conf # List all pods in ps output format. oc get pods0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 4.10 CLI 工具group=group1 # Create a new config map named my-config based on folder bar oc create configmap my-config --from-file=path/to/bar # Create a new config map named my-config with specified keys instead Create a new config map named my-config with key1=config1 and key2=config2 oc create configmap my-config --from-literal=key1=config1 --from-literal=key2=config2 # Create a new config map named my-config pairs in the file oc create configmap my-config --from-file=path/to/bar # Create a new config map named my-config from an env file oc create configmap my-config --from-env-file=path/to/foo.env -0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift Container Platform 4.13 CLI 工具deploymentconfig # Create a new config map named my-config based on folder bar oc create configmap my-config --from-file=path/to/bar # Create a new config map named my-config with specified keys instead Create a new config map named my-config with key1=config1 and key2=config2 oc create configmap my-config --from-literal=key1=config1 --from-literal=key2=config2 # Create a new config map named my-config pairs in the file oc create configmap my-config --from-file=path/to/bar # Create a new config map named my-config from an env file oc create configmap my-config --from-env-file=path/to/foo.env -0 码力 | 128 页 | 1.11 MB | 1 年前3
OpenShift Container Platform 4.10 监控logLevel 字符串 Loglevel 定义 Alertmanager 的日 志级别。可能的值有: error、 warn、info、debug. default:info nodeSelector map[string]string NodeSelector 定义 Pod 调度到哪 些节点上。 资源 v1.ResourceRequirements 资源定义单个 Pod 的资源请求和限 值。 容限(tolerations) prometheus 适配器实例 使用的审计配置。可能的配置集值 有:"metadata, request, requestresponse, none"。默认为 metadata nodeSelector map[string]string NodeSelector 定义 Pod 调度到哪 些节点上。 容限(tolerations) array(v1.Toleration) 容限(toleration)定义 kube-state-metrics 代理相关的配置。 出现在:ClusterMonitoringConfiguration 属性 属性 类 类型 型 描述 描述 nodeSelector map[string]string NodeSelector 定义 Pod 调度到哪 些节点上。 容限(tolerations) array(v1.Toleration) 容限(toleration)定义0 码力 | 135 页 | 1.58 MB | 1 年前3
OpenShift Container Platform 4.14 Operator// belonging to the given memcached CR name. func labelsForMemcached(name string) map[string]string { return map[string]string{"app": "memcached", "memcached_cr": name} } // getPodNames returns commons.collections.CollectionUtils; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; public class MemcachedReconciler implements Reconciler) .list() .getItems(); List podNames = pods.stream().map(p -> p.getMetadata().getName()).collect(Collectors.toList()); if (resource.getStatus() == null 0 码力 | 423 页 | 4.26 MB | 1 年前3
OpenShift Container Platform 4.9 节点在该页面右上方选择 Create Config Map。 3. 输入配置映射的内容。 4. 选择 Create。 以开发者身份创建配置映射: 1. 在 Developer 视角中,选择 Config Maps。 OpenShift Container Platform 4.9 节 节点 点 62 2. 在该页面右上方选择 Create Config Map。 3. 输入配置映射的内容。 4 openshift-kube-scheduler-ip-10-0-141-29.ec2.internal | grep predicates Creating scheduler with fit predicates 'map[MaxGCEPDVolumeCount:{} MaxAzureDiskVolumeCount:{} CheckNodeUnschedulable:{} NoDiskConflict:{} No MaxEBSVolumeCount:{} MatchInterPodAffinity:{} PodToleratesNodeTaints:{}]' and priority functions 'map[InterPodAffinityPriority:{} LeastRequestedPriority:{} ServiceSpreadingPriority:{} ImageLocalityPriority:{}0 码力 | 374 页 | 3.80 MB | 1 年前3
OpenShift Container Platform 3.11 扩展和性能指南固定通过 taskset 或使用 HAProxy 的 cpu-map 参数来执行。此指令采用两个参数:进程 ID 和 CPU 内核 ID。例如,要将 HAProxy 进程 1 固定到 CPU 内核 0,请将以下行添加到 HAProxy 配置文件的 全局部分: 第 第 8 章 章 路由 路由优 优化 化 31 cpu-map 1 0 要修改 HAProxy 配置文件,请参阅部署 Customized0 码力 | 58 页 | 732.06 KB | 1 年前3
OpenShift Container Platform 4.6 发行注记在某些情况下,在生成旧操作对象时传递给资源要求 widget 的值可能不是 immutablejs 映射实 例。当试图引用资源要求 widget 当前值的 immutablejs Map.getIn 函数时,会抛出一个运行时错 误。当引用 immutablejs Map.getIn 函数时,使用可选的链。不会抛出运行时错误,可以显示 widget 没有值。(BZ#1883679) 当对 imagemanifestvuln get clusterrolebinding ${clusterrolebinding} -o json | jq 'select(.subjects!=null) | .subjects | map(.name=="system:unauthenticated") | index(true)'); ### Remove the element at index from subjects array0 码力 | 91 页 | 1.15 MB | 1 年前3
OpenShift Container Platform 4.13 虚拟化VirtualMachines。 2. 选择虚拟机以打开 VirtualMachine 详 详情 情页面。 3. 点 Configuration → Environment。 4. 点 Add Config Map、 、Secret 或 或 Service Account。 5. 点 Select a resource,从列表中选择一个资源。为所选资源自动生成带有六个字符的序列号。 6. 可选:点 Reload "worker1" 4 spec.param.targetNode: "worker2" 5 $ oc apply -n-f map>.yaml apiVersion: batch/v1 OpenShift Container Platform 4.13 虚 虚拟 拟化 化 296 6. 应用 Job 清单: 7. 等待作业完成: $ oc delete job -n kubevirt-vm-latency-checkup $ oc delete config-map -n kubevirt-vm-latency-checkup-config $ oc delete -f 0 码力 | 393 页 | 4.53 MB | 1 年前3
共 25 条
- 1
- 2
- 3













