Skip to content

Gileno29/Kubernets-news-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 

Repository files navigation

Kubernetes-news-site

repository created to pratice use of the basic elements of a kubernetes

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. : )


Requirements:

  • Linux operating system. For this example is being used the Ubuntu 20.4 LTS
  • Vitualbox
  • Must have Docker installed

Basic Concepts

it is interesting to know some basic concepts to understand how the project examples work, such as:

pod:

element that will own the containers that are running in the application

configmap:

element responsible for mapping environment variavies between different kubernetes services

nodes:

collection of resources to support oneor more pods

SVC or services:

are used to expose pod ports to achieve internal communication betwen the services or external as well

config project

install minikube:
    curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64

    sudo install minikube-linux-amd64 /usr/local/bin/minikube
start minikube:
    minikube start –vm-driver=virtualbox

if you use the kubectl get node will already see the kubernets cluster up and running:

    kubectl get nodes

image

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

image


image

login: admin
password:admin

image

Kubernetes documentation

https://kubernetes.io/pt-br/docs/home/

About

Deploy an aplication with kubernetes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published