OpenShift Container Platform 4.10 CLI 工具'description' and the value 'my frontend running nginx', overwriting any existing value oc annotate --overwrite pods foo description='my frontend running nginx' # Update all pods in the namespace oc description='my frontend 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 manifest.yaml that matches label app=nginx and delete all other resources that are not in the file and match label app=nginx oc apply --prune -f manifest.yaml -l app=nginx # Apply the configuration in0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift Container Platform 4.13 CLI 工具'description' and the value 'my frontend running nginx', overwriting any existing value oc annotate --overwrite pods foo description='my frontend running nginx' # Update all pods in the namespace oc description='my frontend 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 manifest.yaml that matches label app=nginx and delete all other resources that are not in the file and match label app=nginx oc apply --prune -f manifest.yaml -l app=nginx # Apply the configuration in0 码力 | 128 页 | 1.11 MB | 1 年前3
OpenShift Container Platform 4.8 CLI 工具'description' and the value 'my frontend running nginx', overwriting any existing value. oc annotate --overwrite pods foo description='my frontend running nginx' # Update all pods in the namespace oc description='my frontend 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 manifest.yaml that matches label app=nginx and delete all the other resources that are not in the file and match label app=nginx. oc apply --prune -f manifest.yaml -l app=nginx # Apply the configuration0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 4.14 Operator一应用程序,而无需编写任何 Go 代码。 如需演示使用 Operator SDK 提供的工具和库来设置并运行基于 Helm 的 Operator 的基本知 识,Operator 开发人员可以为 Nginx 构建一个基于 Helm 的 Operator 示例,并将它部署到集群中。 5.5.1.1. 先决条件 先决条件 已安装 operator SDK CLI 已安装 OpenShift CLI Operator SDK 为 Nginx 构建和部署简单基于 Helm 的 Operator。 流程 流程 1. 创建一个 建一个项目。 目。 a. 创建您的项目目录: b. 切换到项目所在的目录: c. 使用 helm 插件运行 operator-sdk init 命令以初始化项目: 2. 创建 建 API。 。 创建简单的 Nginx API: $ mkdir nginx-operator nginx-operator $ cd nginx-operator $ operator-sdk init \ --plugins=helm $ operator-sdk create api \ --group demo \ 第 第 5 章 章 开 开发 发 OPERATOR 231 此 API 使用 helm create 命令的内置 Helm Chart 网卡。 3. 构建并推送 建并推送0 码力 | 423 页 | 4.26 MB | 1 年前3
OpenShift Container Platform 4.13 网络networkpolicy.networking.k8s.io/web-allow-all-namespaces created $ oc run web --namespace=default --image=nginx --labels="app=web" --expose --port=80 $ oc run test-$RANDOM --namespace=secondary --rm -i -t --image=alpineWelcome to nginx! Welcome to nginx!
If you see this page, the nginx web server is successfully installed and 第 第 22 章 章 网 网络 络策略 策略 217 22.2.6. 创建网络策略,允许从一个命名空间中到应用程序的流量 注意 如果使用具有 cluster-admin 角色的用户登录,则可以在集群中的任何命名空间中创建网 络策略。
0 码力 | 697 页 | 7.55 MB | 1 年前3
OpenShift Container Platform 4.14 存储Cinder � � � name: mypod spec: containers: - name: myfrontend image: dockerfile/nginx volumeMounts: - mountPath: "/var/www/html" 1 name: mypd 2 volumes: - name: storage: 4Gi 3 apiVersion: v1 kind: Pod metadata: name: nginx-ultra spec: nodeSelector: disk: ultrassd 1 containers: - name: nginx-ultra image: alpine:latest command: - "sleep" kind: Pod metadata: name: ssd-benchmark1 spec: containers: - name: ssd-benchmark1 image: nginx ports: - containerPort: 80 name: "http-server" volumeMounts: - name: lun0p10 码力 | 215 页 | 2.56 MB | 1 年前3
OpenShift Container Platform 4.10 可伸缩性和性能topologyManagerPolicy: single-numa-node 2 spec: containers: - name: nginx image: nginx spec: containers: - name: nginx image: nginx 第 第 5 章 章 使用 使用 CPU MANAGER 和拓扑管理器 和拓扑管理器 57 如果所选策略不是 none,则拓扑管理器将不考虑其中任何一个 memory: "200Mi" requests: memory: "100Mi" spec: containers: - name: nginx image: nginx resources: limits: memory: "200Mi" cpu: "2" example.com/device:0 码力 | 315 页 | 3.19 MB | 1 年前3
OpenShift Container Platform 4.13 认证和授权会轮转令牌。 14.3. 在 POD 外部创建绑定服务帐户令牌 apiVersion: v1 kind: Pod metadata: name: nginx spec: containers: - image: nginx name: nginx volumeMounts: - mountPath: /var/run/secrets/tokens name:0 码力 | 201 页 | 2.74 MB | 1 年前3
OpenShift Container Platform 4.8 存储apiVersion: v1 metadata: name: mypod spec: containers: - name: myfrontend image: dockerfile/nginx volumeMounts: - mountPath: "/var/www/html" 1 name: mypd 2 volumes: 第 第 3 章 apiVersion: v1 metadata: name: mypod spec: containers: - name: myfrontend image: dockerfile/nginx volumeMounts: - mountPath: "/var/www/html" name: mypd volumes: - name: mypd0 码力 | 118 页 | 1.60 MB | 1 年前3
OpenShift Container Platform 4.14 镜像Samples Operator 将继续支持 S2I 构建器镜像和模板,并接受更新。S2I 镜像流和模板包括: Ruby Python Node.js Perl PHP HTTPD Nginx EAP Java Webserver .NET Go 从 OpenShift Container Platform 4.16 开始,Cluster Samples Operator 将停止管 icon-mariadb icon-mediawiki icon-memcached icon-mongodb icon-mssql icon-mysql-database icon-nginx icon-nodejs icon-openjdk icon-openliberty icon-openshift icon-openstack icon-other-linux icon-other-unknown0 码力 | 118 页 | 1.13 MB | 1 年前3
共 18 条
- 1
- 2













