-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad28cb4
commit e3b5408
Showing
16 changed files
with
385 additions
and
265 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Configuration file for k3s | ||
|
||
# Node Configuration | ||
node-name: "my-k3s-node" # The name of the node | ||
token: 95e2850a0e0b505b8b677661885509a2 | ||
|
||
# TLS Configuration | ||
tls-san: 192.168.5.200 | ||
|
||
# ETCD configuration | ||
etcd-snapshot-schedule-cron: "0 */6 * * *" #Schedule ETCD snapshots every 6 hours | ||
etcd-snapshot-retention: 7 # Retain the last 7 snapshots | ||
etcd-snapshot-dir: "/var/lib/rancher/k3s/etcd/snapshots" # Directory to store ETCD snapshots | ||
|
||
# Security Configuration | ||
# List of features to disable | ||
disable: | ||
- "traefik" | ||
- "servicelb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
mirrors: | ||
"192.168.7.210:5000": | ||
endpoint: | ||
- "http://192.168.7.210:5000" | ||
configs: | ||
"192.168.7.210:5000": | ||
tls: | ||
insecure_skip_verify: true | ||
"docker.io": | ||
tls: | ||
insecure_skip_verify: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Recommended Specifications for a Production k3s Cluster | ||
|
||
## Control Plane Node (Master) | ||
|
||
1. **Boot Drive (ETCD Storage)**: | ||
|
||
- **Type**: SSD (NVMe preferred for higher performance and reliability) | ||
- **Size**: 100 GB or more (depending on the size and number of resources managed by the cluster) | ||
|
||
2. **Storage Drive**: | ||
|
||
- **Type**: SSD (NVMe preferred) | ||
- **Size**: 100 GB or more (separate from the boot drive for storing persistent data and logs) | ||
|
||
3. **CPU / Cores**: | ||
|
||
- **Cores**: 4 cores (minimum) | ||
- **Type**: Multi-core processor (modern Intel or AMD processors with high clock speeds) | ||
|
||
4. **Memory**: | ||
- **RAM**: 16 GB (minimum) | ||
|
||
## Worker Node | ||
|
||
1. **Boot Drive**: | ||
|
||
- **Type**: SSD (NVMe preferred) | ||
- **Size**: 50 GB or more (sufficient for OS and k3s runtime) | ||
|
||
2. **Storage Drive**: | ||
|
||
- **Type**: SSD (NVMe preferred) | ||
- **Size**: 100 GB or more (additional storage can be added based on workload requirements) | ||
|
||
3. **CPU / Cores**: | ||
|
||
- **Cores**: 2 cores (minimum) | ||
- **Type**: Multi-core processor (modern Intel or AMD processors with good performance per core) | ||
|
||
4. **Memory**: | ||
- **RAM**: 8 GB (minimum) | ||
|
||
## Additional Considerations | ||
|
||
- **High Availability**: For a highly available control plane, deploy at least three control plane nodes to ensure resilience and fault tolerance. | ||
- **Network**: Ensure high-speed networking (1 Gbps or higher) between nodes for optimal performance. | ||
- **Backup and Recovery**: Implement regular backups of ETCD and other critical data to ensure disaster recovery capabilities. | ||
- **Monitoring and Logging**: Deploy comprehensive monitoring and logging solutions to track the health and performance of the cluster. | ||
- **Load Balancing**: Consider using a load balancer in front of the control plane nodes to distribute traffic evenly and provide redundancy. | ||
|
||
These recommendations aim to provide a robust and reliable k3s production cluster. Adjustments may be necessary based on specific workload requirements and performance benchmarks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.