Lab 3.12 local registry - volume not used?
In this lab we create two PersistentVolume's pointing to /tmp/data and /tmp/nginx but later we create the folders /localdocker/data and /localdocker/nginx they will never be used though, right?
I fixed it by changing the vol1.yaml and vol2.yaml to point to /localdocker/data and /localdocker/nginx. Then I found out that this did work but on the node the localregistry got deployed to. In my case worker2. I created a master and two workers not allowing deployments on master.
Now on a reboot of my local virtualMachine (virtualbox) setup it is very possible that they will be spun up on a different node the next time and I lose my pushed images. This actually happened already :-)
I also noticed that the volumes are bound "randomly" to one of the claims and in my case nginx got bound to data and registry to nginx. This felt weird and unwanted...
Are these things wil will solve later on in the course or am I missing something here?
Thanks.
Comments
-
Hi @ivonet,
Both sets are used in various steps in the lab exercise. In step 4 the
localdocker/dataand/localdocker/nginxdirectories are mounted by the containers run withdocker-compose, while in step 10 the/tmp/dataand/tmp/nginxdirectories are mounted through the help of the two Persistent Volumes.Regards,
-Chris0 -
Ok thanks, It would have been nice to have been told that the config was still faulty and not to worry. I have looked at if for hours without the knowledge (yet
) to fix it, because I knew something was wrong.0 -
Hi @ivonet,
The capability of an application to run in one environment with one configuration and then again in a different environment with a different configuration shows that objects are decoupled from their resources, which is one of the main principles behind containerized microservices.
Regards,
-Chris0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 754 Linux Foundation IT Professional Programs
- 374 Cloud Engineer IT Professional Program
- 170 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 5 DevOps & GitOps IT Professional Program
- 100 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 2 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 5 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 2 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 794 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 89 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 112 Mobile Computing
- 20 Android
- 77 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 393 Off Topic
- 121 Introductions
- 182 Small Talk
- 29 Study Material
- 977 Programming and Development
- 310 Kernel Development
- 649 Software Development
- 990 Software
- 382 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)