Skip to content

ahsouza/k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orquestration containers with Kubernets

alt text

Climbing pods

Applying ConfigMap

kubectl apply -f configmap.yaml

Verify with:

kubectl get configmaps

Applying Deployment

kubectl apply -f deployment.yaml

Veirfy Deployment:

kubectl get pods

Applying services

kubectl apply -f service.yaml

Show services

kubectl get svc

Simulating service with minikube

minikube service nginx-service

If you want to destroy the pods:

Delete pod selected
kubectl delete deployment ahsouza-nginx
Delete All
kubectl delete deployments --all

Kubernetes no GCP

alt text

Deploying resources

After connecting the cluster to GCP

ConfigMap NGINX

kubectl apply -f configmap.yaml

Applying deployment NGINX

kubectl apply -f deployment.yaml

Applying service LoadBalancer

kubectl apply -f service.yaml

Applying volume persistent, service and deployment of MySQL

cd mysql
kubectl apply -f persistent-volume.yaml
kubectl create secret generic mysql-pass --from-literal=password='@hs@hs@hs0uzA'
kubectl apply -f deployment.yaml
kubectl apply -f service.yaml

Releases

No releases published

Packages

No packages published