项目作者: ganochenkodg

项目描述 :
Single node k8s in vagrant machine for experiments
高级语言: JavaScript
项目地址: git://github.com/ganochenkodg/minikube-ministack.git
创建时间: 2020-05-15T14:33:05Z
项目社区:https://github.com/ganochenkodg/minikube-ministack

开源协议:

下载


minikube-ministack

description

Simple dev stack with single-node k8s. Used tools:
Vagrant - a tool that lets you create and configure lightweight, reproducible, and portable development environments in different hypervisors.
Virtualbox - a free and open-source hosted hypervisor for x86 virtualization, developed by Oracle Corporation.
Minikube - a tool that lets you use a Kubernetes cluster locally. It lets you create a single node cluster inside a VM on your laptop.

usage

  1. Install Vagrant and Virtualbox.
  2. Clone this repository and run cd minikube-ministack && vagrant up. During the launch process, you will be required to enter the root password. After that kubernetes cluster will be raised up using Ansible, and simple nodejs app will be deployed in dev and prod environments.
  3. You can check the status of the cluster and control the Kubernetes through the dashboard.
  4. Each deployed app sends his metrics in Prometheus, for which the dashboard is configured in Grafana. Credentials for Grafana is admin:prom-operator and dashboard name is MyApp monitoring.
  5. For deploy app in different namespaces you can use jenkins plan Deploy_MyApp. Credentials for Jenkins is admin:admin. Please wait while Jenkins initialize, this may take a long time.

Tasklist:

  • Run minikube.
  • Run dashboard and ingress.
  • Write first app.
  • Create CI/CD for deploy it to dev/prod environments.
  • Get metrics and visualize it in grafana.