Skip to content

varces/devsar-talks

Repository files navigation

Devsar logo

Kubernetes examples

This is a basic project with kubernetes examples.

Tools to run the examples

Running simple nginx

    kubectl run my-nginx --image=nginx --port=80
    kubectl get pods

Running NodeJS Deployment

    eval $(minikube docker-env)
    docker build -t devsar-node:1.0 .
    kubectl create deployment devsar-node --image=devsar-node:1.0
    kubectl get deployments
    kubectl get pods
    kubectl expose deployment devsar-node --type=LoadBalancer --port=8080
    kubectl get services
    minikube service devsar-node

Running simple POD

    kubectl apply -f redis-pod.yaml

Running older version and update deployment

    kubectl apply -f deployment-nginx-1.14.2.yaml
    kubectl get deployments
    kubectl apply -f deployment-nginx-1.16.1.yaml
    kubectl get deployments

Running Scaling PODs

    kubectl apply -f deployment-nginx-scaling.yaml
    kubectl expose deployment nginx-deployment --type=LoadBalancer --port=80

Running Auto Scaling Cluster

    minikube addons enable metrics-server
    kubectl apply -f deployment-nginx-autoscaling.yaml      

Running Stress script

    locust -f stress.py --host http://host:port 

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published