- Run
kubectl label nodes <control plane> labfiles="true"
on the node where your file to be copied are located mkdir ~/labfiles
- Copy your files to ~/labfiles
git clone https://github.com/olaekdahl/k8s-lab-files-server.git
on your lab servercd k8s-lab-files-server/
kubectl apply -f pv.yaml,pvc.yaml,deployment.yaml
- Check folder location in
pv.yaml
. It's/home/student/labfiles
by default
- Check folder location in
kubectl expose deployment labfiles-server --type=NodePort
kubectl get svc
to get port numbercurl ifconfig.io
to get public ip address- http://
<ip address>:<port number>
/
-
Notifications
You must be signed in to change notification settings - Fork 0
olaekdahl/k8s-lab-files-server
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published