Giter Site home page Giter Site logo

test's Introduction

Вариант 1:

Запуск minikube

minikube start \
    --addons=ingress,dashboard

Подключение к внутреннему хранилищу образов minikube и сборка образа:

eval $(minikube docker-env)
docker build -t nginx-kefir:1.19.7 -f image/Dockerfile ./image/

Запуск helm-чарта:

helm install nginx-kefir \
    ./helm/nginx-kefir/ \
    --create-namespace \
    --namespace test1

Проверяем, что деплой успешен:

kubectl get deployment -n test1
NAME          READY   UP-TO-DATE   AVAILABLE   AGE
nginx-kefir   1/1     1            1           39s

Проверка результата:

curl -H "Host: example.local" http://$(minikube ip)

Вариант 2:

Запуск helm-чарта:

helm install nginx-stock \
    ./helm/nginx-stock/ \
    --create-namespace \
    --namespace test2

Проверяем, что деплой успешен:

kubectl get deployment -n test2
NAME          READY   UP-TO-DATE   AVAILABLE   AGE
nginx-stock   1/1     1            0           30s

Проверка результата:

curl -H "Host: example2.local" http://$(minikube ip)

Масштабирование:

helm install nginx-stock \
    ./helm/nginx-stock/ \
    -n test2 \
    --set replicaCount=10

Проверка результата:

kubectl get deployment -n test2
NAME          READY   UP-TO-DATE   AVAILABLE   AGE
nginx-stock   10/10   10           10          2m6s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.