the system used to show the examples was developed by alura courses and the examples and concepts cited are based on the content presented in the course of the alura, knowledge of the author and research in documentation. I hope they help anyone who's reading. : )
- Linux operating system. For this example is being used the Ubuntu 20.4 LTS
- Vitualbox
- Must have Docker installed
it is interesting to know some basic concepts to understand how the project examples work, such as:
element that will own the containers that are running in the application element responsible for mapping environment variavies between different kubernetes services collection of resources to support oneor more pods are used to expose pod ports to achieve internal communication betwen the services or external as well
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start –vm-driver=virtualbox
minikube start –vm-driver=virtualbox
if you use the kubectl get node will already see the kubernets cluster up and running:
kubectl get nodes
Now apply the manifests:
kubectl apply -f site_noticias/porta-noticias.yaml
kubectl apply -f site_noticias/site-noticias.yaml
kubectl apply -f site_noticias/db/db-noticias.yaml
kubectl apply -f site_noticias/configMap/db-configmap.yaml
kubectl apply -f site_noticias/configMap/portal-configmap.yaml
kubectl apply -f site_noticias/configMap/sistema-configmap.yaml
see what ip of your node and access the services on ports 30000 and 300001
kubectl get nodes -o wide