K3s Kubernetes SQL Server Deployment Documentation
1. Overview
This guide provides a complete workflow to:
- Install k3s Kubernetes cluster on a Linux server
- Configure kubectl access for the user
- Build and deploy a custom SQL Server Docker image
- Configure persistent storage for SQL Server
- Enable external access through firewall and NodePort
- Troubleshoot common issues
2. Prerequisites
- Linux server with sudo access
- Internet connectivity
- Docker installed for building images
- Firewall access to required ports
- Basic Linux and Kubernetes knowledge
3. System Preparation
3.1 Check Memory and Swap
free -h
sudo swapoff -a # Kubernetes requires swap to be off