INFO:This work has been tried on one node and this application will run on kubernetes master node. If you are going to try this installation on a cluster that has a multiple nodes, you should create the mount folders on your choosen worker node or you can use the storage class(recomended). Also if you choose pv and pvc resources you need to use node selector. I will not give information about node selector here. But, you can find a lot of information about pod assign for node on this link.
Let’s try to this installation.
Step1:
Create Docker user and add in your docker group. Because, we will define id number on yaml file for environment.
useradd docker
useradd -g docker docker
Take your id number of docker users.
id docker
Step2: Create new folder under the worker node. If you have a more than one worker node you must create folder on every each node or you can use node selector to run on specific worker node.
Step4: Create yaml file for database of bookstack.And we will take db pod ip address to use bookstack application yaml file. This is not best practice. If we want to connect the other pod we should create service resources to connect the other pods. Because some pods may die and a new one may up . In this time pod ip address will change. So if we use service, it does not matter even if ip changing because service is matching the pod label.