Skip to content

Commit

Permalink
Merge pull request #468 from guessi/improve-preBootstrapCommands
Browse files Browse the repository at this point in the history
Improve `preBootstrapCommands` commands output
  • Loading branch information
svennam92 authored Mar 13, 2024
2 parents 4e6fac1 + 76033ac commit 2ad00f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions content/scalability/docs/data-plane.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,12 @@ managedNodeGroups:
- volumeName: '/dev/sdz'
volumeSize: 100
preBootstrapCommands:
- "systemctl stop containerd"
- "mkfs -t ext4 /dev/nvme1n1"
- "rm -rf /var/lib/containerd/*"
- "mount /dev/nvme1n1 /var/lib/containerd/"
- "systemctl start containerd"
- |
"systemctl stop containerd"
"mkfs -t ext4 /dev/nvme1n1"
"rm -rf /var/lib/containerd/*"
"mount /dev/nvme1n1 /var/lib/containerd/"
"systemctl start containerd"
```

Terraform을 사용하여 노드 그룹을 프로비저닝하는 경우 [EKS Blueprints for terraform](https://aws-ia.github.io/terraform-aws-eks-blueprints/patterns/stateful/#eks-managed-nodegroup-w-multiple-volumes)의 예를 참조하세요. Karpenter를 사용하여 노드를 프로비저닝하는 경우 노드 사용자 데이터와 함께 [`blockDeviceMappings`](https://karpenter.sh/docs/concepts/nodeclasses/#specblockdevicemappings)를 사용하여 추가 볼륨을 추가할 수 있습니다.
Expand Down
11 changes: 6 additions & 5 deletions content/scalability/docs/data-plane.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,12 @@ managedNodeGroups:
- volumeName: '/dev/sdz'
volumeSize: 100
preBootstrapCommands:
- "systemctl stop containerd"
- "mkfs -t ext4 /dev/nvme1n1"
- "rm -rf /var/lib/containerd/*"
- "mount /dev/nvme1n1 /var/lib/containerd/"
- "systemctl start containerd"
- |
"systemctl stop containerd"
"mkfs -t ext4 /dev/nvme1n1"
"rm -rf /var/lib/containerd/*"
"mount /dev/nvme1n1 /var/lib/containerd/"
"systemctl start containerd"
```

If you are using terraform to provision your node groups please see examples in [EKS Blueprints for terraform](https://aws-ia.github.io/terraform-aws-eks-blueprints/patterns/stateful/#eks-managed-nodegroup-w-multiple-volumes). If you are using Karpenter to provision nodes you can use [`blockDeviceMappings`](https://karpenter.sh/docs/concepts/nodeclasses/#specblockdevicemappings) with node user-data to add additional volumes.
Expand Down

0 comments on commit 2ad00f5

Please sign in to comment.