Skip to content

Commit 20ec4df

Browse files
Update kubernetes.md
1 parent c5177cd commit 20ec4df

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

kubernetes.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,32 @@
22

33
## CLUSTER
44

5+
<details><summary>CLOUD-INIT RKE2 CLUSTER</summary>
6+
7+
```bash
8+
#cloud-config
9+
package_update: true
10+
package_upgrade: true
11+
packages:
12+
- cloud-guest-utils
13+
- lvm2
14+
runcmd:
15+
# Fix GPT and grow partition 3 (where LVM PV actually is)
16+
- growpart /dev/sda 3
17+
# Resize the LVM physical volume
18+
- pvresize /dev/sda3
19+
# Extend LV for /var with all free space
20+
- lvextend -l +100%FREE /dev/vg0/var
21+
# Resize XFS filesystem
22+
- xfs_growfs /var
23+
# Verify
24+
- df -h /var
25+
- vgs vg0
26+
```
27+
28+
</details>
29+
30+
531
<details><summary>GOCV</summary>
632

733
### UPLOAD OVA TO VCENTER

0 commit comments

Comments
 (0)