Skip to content

maartenvanwersch/ubrise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kuberise logo

Kuberise

Kuberise is a free opensource internal developer platform for Kubernetes environment.

Prerequisites

  • kubectl, helm, htpasswd, git command line tools
  • git repository

Quick Installation (with pre-defined set of tools)

This instruction is only for demo and it will deploy a set of default tools and you can not modify or change any value or configuration. Assume that you have a kubernetes cluster with kubernetes config context called 'minikube' and you name your platform cluster "local". Then you can run this command to install kuberise platform on your minikube cluster.

export CONTEXT=$(kubectl config current-context)
git clone https://github.com/kuberise/kuberise.git
cd kuberise
./scripts/install.sh $CONTEXT local https://github.com/kuberise/kuberise.git main

Full Installation

This is a full installation and after installation you can add or remove any tools or services and also you can change values and configurations.

  • Fork this repository into your Github account (or clone this repository and push it in any other code repository). Now your new repository address is RepoURL
  • Clone the new repository in your computer and enter to the kuberise folder. (cd kuberise)
  • Choose a name for your platform like PlatformName
  • Create a value file in app-of-apps folder with the name of values-PlatformName.yaml (In this file you can define which tools you want to install in your platform. This file will override default values.yaml file in that folder. You can copy current values-local.yaml file cp ./app-of-apps/values-local.yaml ./app-of-apps/values-PlatformName.yaml)
  • In values folder create a new folder (or copy local sample folder) and call it PlatformName. This is the folder for values for each tool that you install in your platform. For each tool that you install there should be a folder with the same name and values.yaml inside that folder. (cp -r ./values/local ./values/PlatformName)
  • Commit and push changes to your new repository.
  • Choose admin password and also postgresql super admin password
export ADMIN_PASSWORD=<Enter a password for admin>
export PG_SUPERUSER_PASSWORD=<Enter a password for postgres super admin>

# example:
export ADMIN_PASSWORD=eiKJFhjd34fks
export PG_SUPERUSER_PASSWORD=kFHEkjf323kfsW
  • Install kuberise (if you are using fork or your repository is public, you don't need to add a token at the end of this command)
./scripts/install.sh <KubernetesContext> <PlatformName> <RepoURL> <BranchName> <RepoToken>

# example:
./scripts/install.sh minikube local https://github.com/yourUserName/kuberise.git main

Minikube and local installation

After deploying to a minikube local cluster, you can run sudo minikube tunnel command to use the local ingress to access services. For example to go to argocd and keycloak and grafana you can use these urls and you don't need to do port-forward:

In default minikube configuration, all services admin username and passwords are admin. For minikube tunnel to work, the minikube config information should be in ~/.kube/config file which is the default kubeconfig location. If you can not use minikube tunnel, you can use prot-forward to be able to access the dashboard of different services:

kubectl port-forward svc/argocd-server -n argocd 8081:80 &
kubectl port-forward svc/kube-prometheus-stack-grafana -n monitoring 8082:80 &
kubectl  port-forward svc/keycloak -n keycloak 8083:80 &

Architecture

Single platform cluster

A common architecture looks like this:

  • One platform cluster for platform services
  • 3 separate clusters for applications and for different environment (Development, Acceptance, Production)
  • The platform cluster will provide platform services for all 3 application clusters.

Multiple platform clusters

Maybe you decide that one platform cluster for all is not safe. Then you can add one extra platform cluster.

  • One platform cluster for platform services for non-production environments.
  • Another platform cluster for platform services for production environment.
  • 3 Application clusters for applications for different environments (Development, Acceptance, Production)

For multiple platform cluster scenario, you should create one value file for each of them in app-of-apps folder and also one folder for each platform in values folder. It will be like this:

.
├── app-of-apps
│   ├── values-NonProd.yaml
│   ├── values-Prod.yaml
│   └── values.yaml
└── values
    └── NonProd
    │ ├── keycloak
    │ ├── loki
    │ └── argocd
    └── Prod
      ├── keycloak
      ├── loki
      └── argocd

In app-of-apps folder there is one values.yaml which is a default value file and there should be one value file for each separate platform cluster, because you have to install the app-of-apps once per platform cluster. This is equal to the number of argocd instances you have. This argocd is managing the platform services and also the microservices. Even if the miroservices are deployed into another cluster, they are deployed and managed by the argocd inside the platform cluster.

For example, assume that you have your platform cluster in azure and you call your platform "PlatformAzure", you have only one platform cluster that manages all environments of microservices and you have 3 separate clusters for your microservcies (dev,tst,prd). Then in your app-of-apps folder you will have only two value files: values.yaml for defaults and values-PlatformAzure.yaml for your one platform cluster.

How to uninstall

./scripts/uninstall.sh <KubernetesContext> <PlatformName>

Platform Engineering Concept

Being a DevOps today is different than before. In the complex environment of different cloud providers and Kubernetes clusters, it is challenging to be a developer and also know how to deploy your application to these environments.

Platform teams can create an internal developer platform to abstract all the complexities of the deployment environments from the developers and help them to focus on their development. They provide a set of self-service tools, templates, best defaults and support to developers to be able to deploy their application whenever they want and to any environment they want without need to know and learn all details of the Kubernetes or different tools.

After deployment of their applications, developers can also monitor and maintain their own application themselves. kuberise can help platform engineers or developers to create an internal developer platform for their teams.

kuberise features

kuberise will deploy several tools to provide a developer environment in your Kubernetes cluster.

  • You can choose which tool you want to install
  • Are tools are common open source projects that are popular in IT environments.
  • There is no lock-in in kuberise. After deployment of kuberise, you will have the full control of your environment and shape your environment to fit you best.
  • kuberise is built based on GitOps best practices. The repository is the only source of truth and you can track the changes and avoid any manual changes in the cluster.

kuberise tools

These tools are currently included in kuberise and more tools will be included in the future:

CD (Continuous Deployment)

  • ArgoCD

Observability

  • Grafana
  • Loki
  • Prometheus
  • Promtail

Authentication and Authorization and Security

  • Keycloak
  • sealed-secret
  • cert-manager

Data

  • PostgreSQL

Networking

  • Ingress-nginx

To read more please refer to the docs here

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 70.2%
  • Smarty 29.8%