1.3.4. ワークスペースの例
このセクションでは、OpenShift Dev Spaces ワークスペースの例について説明します。
以下の devfile は、OpenShift Dev Spaces ワークスペースを定義します。
schemaVersion: 2.1.0
metadata:
name: bash
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-0e189d9
memoryLimit: 4Gi
commands:
- id: run-main-script
exec:
label: "Run main.sh script"
component: tools
workingDir: '${PROJECT_SOURCE}'
commandLine: |
./main.sh
group:
kind: run
isDefault: trueこの表は、各ワークスペースコンポーネントのメモリー要件を示しています。
表1.4 ワークスペースメモリー要件および制限の合計
| Pod | コンテナー名 | デフォルトのメモリー制限 | デフォルトのメモリー要求 |
|---|---|---|---|
| ワークスペース |
| 512 Mi | 64 Mi |
| ワークスペース |
| 128 Mi | 32 Mi |
| ワークスペース |
| 4 Gi | 64 Mi |
| ワークスペース |
| 256 Mi | 64 Mi |
| 合計 | 4.9 Gi | 224 Mi | |