Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siavashmhi/kubenfs
Ansible automation code for setup nfs server.
https://github.com/siavashmhi/kubenfs
ansible csi kubernetes nfs-server
Last synced: 6 days ago
JSON representation
Ansible automation code for setup nfs server.
- Host: GitHub
- URL: https://github.com/siavashmhi/kubenfs
- Owner: siavashmhi
- Created: 2024-10-21T13:23:08.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T13:26:24.000Z (2 months ago)
- Last Synced: 2024-11-02T01:06:06.512Z (about 2 months ago)
- Topics: ansible, csi, kubernetes, nfs-server
- Language: Shell
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Automated NFS Configuration for Kubernetes Persistent Volumes using Ansible
This project provides a fully automated solution to configure Network File System (NFS) on a set of Ubuntu servers and integrates it with Kubernetes for Persistent Volumes (PV). The automation is driven by Ansible, ensuring a consistent and repeatable setup across multiple servers.
![NFS high level design](./images/kube-nfs.png "NFS high level design")
### Step 1: Clone the Repository
To begin, clone this repository to your local machine:
```bash
git clone https://github.com/siavashmhi/Kubenfs.git
cd Kubenfs
```### Step 2: Modify ansible inventory.ini file
You have to set server IPs in this file.
```bash
cat inventory/inventory.ini[all]
nfs-server ansible_host=192.168.1.10
worker1 ansible_host=192.168.1.11
worker2 ansible_host=192.168.1.12[nfs-servers]
nfs-server ansible_host=192.168.1.10[kubernetes-workers]
worker1 ansible_host=192.168.1.11
worker2 ansible_host=192.168.1.12```
### Step 3: Run nfs.yml ansible playbook.
```bash
ansible-playbook -i inventory/inventory.ini playbooks/nfs.yml
```