Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
devops-intern-training
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Văn Vũ
devops-intern-training
Commits
7673cec2
Commit
7673cec2
authored
Feb 27, 2024
by
Nguyễn Văn Vũ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Week7 - Setup NFS server and deploy minio app used pv and pvc for stored data
parent
10b3ef04
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
122 additions
and
0 deletions
+122
-0
setup-nfs-client.sh
...ll-and-configure-nfs-server-on-ubuntu/setup-nfs-client.sh
+5
-0
setup-nfs-server.sh
...ll-and-configure-nfs-server-on-ubuntu/setup-nfs-server.sh
+38
-0
minio-ns.yaml
week7/setup-minio-app/minio-ns.yaml
+7
-0
minio-pod.yaml
week7/setup-minio-app/minio-pod.yaml
+29
-0
minio-pv.yaml
week7/setup-minio-app/minio-pv.yaml
+16
-0
minio-pvc.yaml
week7/setup-minio-app/minio-pvc.yaml
+14
-0
minio-service.yaml
week7/setup-minio-app/minio-service.yaml
+13
-0
No files found.
week7/install-and-configure-nfs-server-on-ubuntu/setup-nfs-client.sh
0 → 100644
View file @
7673cec2
# My subnet is 10.0.2.15/24
# Installing NFS client
sudo
apt
install
nfs-common
week7/install-and-configure-nfs-server-on-ubuntu/setup-nfs-server.sh
0 → 100644
View file @
7673cec2
#!bin/bash
# This file used for set up nfs server on Ubuntu 22.04
# Subnet “10.0.2.15/24” (Client) to access the NFS server
# Update system packages
sudo
apt update
# Install NFS server
sudo
apt
install
nfs-kernel-server
# Make shared NFS directory
sudo mkdir
-p
/mnt/nfs_share
# Set directory permissions
sudo chown
-R
nobody:nogroup /mnt/nfs_share/
# Set file permissions
sudo chmod
777 /mnt/nfs_share/
# Grant NFS access
sudo echo
"/mnt/nfs_share 10.0.2.15/24(rw,sync,no_subtree_check)"
>
/etc/exports
# Exporting NFS directory
sudo
exportfs
-a
# Restart NFS server
sudo
systemctl restart nfs-kernel-server
# Grant Firewall access
sudo
ufw allow from 10.0.2.15/24 to any port nfs
# Enable Firewall
sudo
ufw
enable
# Check Firewall status
sudo
ufw status
\ No newline at end of file
week7/setup-minio-app/minio-ns.yaml
0 → 100644
View file @
7673cec2
---
apiVersion
:
v1
kind
:
Namespace
metadata
:
name
:
minio-application
labels
:
name
:
minio-application
week7/setup-minio-app/minio-pod.yaml
0 → 100644
View file @
7673cec2
---
apiVersion
:
v1
kind
:
Pod
metadata
:
labels
:
app
:
minio
name
:
minio
namespace
:
minio-application
spec
:
containers
:
-
name
:
minio
image
:
quay.io/minio/minio:latest
resources
:
limits
:
memory
:
"
2048Mi"
cpu
:
"
2000m"
command
:
-
/bin/bash
-
-c
args
:
-
minio server /data --console-address :9090
volumeMounts
:
-
mountPath
:
/data
name
:
localvolume
volumes
:
-
name
:
localvolume
persistentVolumeClaim
:
claimName
:
minio-pvc
week7/setup-minio-app/minio-pv.yaml
0 → 100644
View file @
7673cec2
---
apiVersion
:
v1
kind
:
PersistentVolume
metadata
:
name
:
minio-pv
spec
:
capacity
:
storage
:
1024Mi
volumeMode
:
Filesystem
accessModes
:
-
ReadWriteOnce
storageClassName
:
"
"
persistentVolumeReclaimPolicy
:
Recycle
nfs
:
path
:
/var/nfs/k8s
server
:
192.168.68.8
week7/setup-minio-app/minio-pvc.yaml
0 → 100644
View file @
7673cec2
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
minio-pvc
namespace
:
minio-application
spec
:
resources
:
requests
:
storage
:
1000Mi
volumeMode
:
Filesystem
storageClassName
:
"
"
volumeName
:
minio-pv
# Specific PV to PVC connect
accessModes
:
-
ReadWriteOnce
week7/setup-minio-app/minio-service.yaml
0 → 100644
View file @
7673cec2
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
minio-svc
namespace
:
minio-application
spec
:
type
:
LoadBalancer
selector
:
app
:
minio
ports
:
-
port
:
9090
nodePort
:
30011
targetPort
:
9090
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment