18 lines
No EOL
633 B
Bash
Executable file
18 lines
No EOL
633 B
Bash
Executable file
#!/bin/bash
|
|
# Run these commands on your Proxmox node (e.g., lab02)
|
|
|
|
# Create a Ceph pool for Kubernetes with 128 placement groups
|
|
echo "Creating Kubernetes pool..."
|
|
ceph osd pool create kubernetes 128
|
|
ceph osd pool application enable kubernetes rbd
|
|
|
|
# Create a Ceph user for Kubernetes with appropriate permissions
|
|
echo "Creating Kubernetes user..."
|
|
ceph auth get-or-create client.kubernetes \
|
|
mon 'profile rbd' \
|
|
osd 'profile rbd pool=kubernetes' \
|
|
mgr 'profile rbd pool=kubernetes'
|
|
|
|
# Display the key for configuration
|
|
echo -e "\n\nCopy the key value below for your configuration:"
|
|
ceph auth get client.kubernetes | grep key |