All Projects → ManagedKube → Kubernetes Ops

ManagedKube / Kubernetes Ops

Licence: apache-2.0
Running Kubernetes in production

Projects that are alternatives of or similar to Kubernetes Ops

terraform-templates
Terraform templates, examples, etc.
Stars: ✭ 16 (-87.4%)
Mutual labels:  infrastructure, hcl
Terraform With Circleci Example
This is an example of automatic deployments of your infrastructure using terraform and CircleCI 2.0 workflows
Stars: ✭ 142 (+11.81%)
Mutual labels:  hcl, infrastructure
Infra Personal
Terraform for setting up my personal infrastructure
Stars: ✭ 45 (-64.57%)
Mutual labels:  hcl, infrastructure
Terraform Aws Landing Zone
Terraform Module for AWS Landing Zone
Stars: ✭ 142 (+11.81%)
Mutual labels:  hcl, infrastructure
stein
A linter for config files with a customizable rule set
Stars: ✭ 92 (-27.56%)
Mutual labels:  infrastructure, hcl
terraform-vsphere-single-vm
Deploy single vSphere VM with Terraform - template.
Stars: ✭ 21 (-83.46%)
Mutual labels:  infrastructure, hcl
Mikado
🤖💨Mikado helps managing your AWS infrastructure for WordPress sites by defining an out-of-box, highly available, easy-to-deploy setup
Stars: ✭ 80 (-37.01%)
Mutual labels:  hcl, infrastructure
Paasta
An open, distributed platform as a service
Stars: ✭ 1,569 (+1135.43%)
Mutual labels:  infrastructure
Gontroller
Go library to create resilient feedback loop/control controllers.
Stars: ✭ 121 (-4.72%)
Mutual labels:  infrastructure
Config Lint
Command line tool to validate configuration files
Stars: ✭ 118 (-7.09%)
Mutual labels:  hcl
Terraform Google Forseti
A Terraform module for installing Forseti on GCP
Stars: ✭ 117 (-7.87%)
Mutual labels:  hcl
Machine learning lectures
Collection of lectures and lab lectures on machine learning and deep learning. Lab practices in Python and TensorFlow.
Stars: ✭ 118 (-7.09%)
Mutual labels:  tutorials
Terraform
Terraform automation for Cloud
Stars: ✭ 121 (-4.72%)
Mutual labels:  hcl
Terraform Aws Kubernetes
Install a Kubernetes cluster the CoreOS Tectonic Way: HA, self-hosted, RBAC, etcd Operator, and more
Stars: ✭ 118 (-7.09%)
Mutual labels:  hcl
Git Cheats
Git Cheats - Interactive Cheatsheet For Git Commands
Stars: ✭ 124 (-2.36%)
Mutual labels:  tutorials
Kyua
Testing framework for infrastructure software
Stars: ✭ 117 (-7.87%)
Mutual labels:  infrastructure
Backstage
Backstage is an open platform for building developer portals
Stars: ✭ 14,296 (+11156.69%)
Mutual labels:  infrastructure
Purplecloud
An Infrastructure as Code (IaC) deployment of a small Active Directory pentest lab in the cloud. The deployment simulates a semi-realistic corporate enterprise Active Directory with a DC and endpoints. Purple team goals include blue team detection capabilities and R&D for detection engineering new approaches.
Stars: ✭ 122 (-3.94%)
Mutual labels:  hcl
Terraform Google Sql Db
Modular Cloud SQL database instance for Terraform.
Stars: ✭ 120 (-5.51%)
Mutual labels:  hcl
Terraform Aws Serverless
Infrastructure support for Serverless framework apps, done the right way
Stars: ✭ 120 (-5.51%)
Mutual labels:  hcl

ToC

Table of contents generated with markdown-toc

What is kubernetes-ops

Kubernetes Ops has been a culmination of how we have been helping clients use Kubernetes over the years. There has been a lot of trial an error as we have grown up with Kubernetes. This represents how we are currently helping our clients use Kubernetes and how we help them maintain their infrastructure. You can view this as a reference implementation of a fully productionalized Kubernetes setup.

We lean towards the immutable infrastructure and Gitops Flow methodologies and use no configuration management tools. Everything starts out in Git as either code or configuration. Items are manipulated to what we want the desired state to be and that is applied onto the infrastructure.

One of the biggest problem that this repository helps out with is what people are starting to refer to as "day 2" problems (where "day 1" is creation). The "day 1" problems are well documented and there are plenty of tutorials out there for it. The problem with these tutorials and examples are that they mostly leave you hanging on how to move forward with the infrastructure pieces. Day 2 problems are: what is the upgrade, patching, and modification strategy, how do I manage the infrastructure git repository, etc?

This is where we think we can provide some contribution. With our experience in managing many Kubernetes clusters over the years, we think we can provide this information. Creation of your cluster is about 10 to maybe 20 percent of the infrastructure activity (if that), making changes to the infrastructure to suit your needs as time moves on is the bulk of the activity and finally deletion of the entire or parts of the infrastructure as new items comes into play.

If you follow through the instructions, you might think this is overly complex. If this is your first time playing around with Kubernetes, it probably is overly complex and this project is probably not well suited for you at this time. When you want to take Kubernetes into production, this is where we think this set of methodologies starts to shine. For example, this gives you an example of how to lay out a repository for you infrastructure. It gives you the process and workflow to create and update infrastructure pieces. From working with many clients, we have come to a place where managing the infrastructure in this way has made sense and has worked out really well in large and small teams.

The stack this will create

the stack

Whys

Why do all of this?

Isn't there already projects that bring up Kubernetes for me? Why don't I just use GKE, EKS, AKS, *KS?

Yes, there is and we use all of that. You can use anyone of those services and go to the respective web console and bring up a Kubernetes cluster. In our opinion and from our experience this is fine if you are testing out Kubernetes or just trying out something new. It is fast and easy to understand what is going on. However, when you want to bring that "new thing" into production, managing it that way is not ideal. It is hard to reproduce from dev to qa to prod. Making manual changes are hard to track and very error prone.

We stress that this project does not represent the "easy" way of managing infrastructure. This project represents a way to manage infrastructure in a Gitops flow kinda way and in a sane way where a team of people can work on it together.

GitOps workflow, how does that play into this project?

This project mainly follow a Gitops workflow methodology. Changes are made in this repository to code or configs in a branch. A PR can be opened on that branch where other team members can review the changes. Then depending on your merging techniques and automation it can be applied or merged then applied to any one environment.

Why an entire repository?

We have found that having an "infrastructure" repository makes sense. You need these items to live somewhere. It is usually not application code and it is an entity all to itself. The infrastructure repository also usually gets fairly large overtime as new items gets added into the software stack and new requirements for services comes along.

As an organization grows, it also tends to be a different set of people that maintains the infrastructure and this repository. You have application developers and DevOps or infrastructure groups. Even if you have those two teams in the same group having this separate is a good delineation on what is actually being changed. If items in here are changed, it is clearly an infrastructure related item.

What tools do we use

We mainly only use open source tools. There might be some paid tools eventually ending up in this repository and we will explicitly label those.

Infrastructure building:

  • Terraform
  • Terragrunt
  • Kops

Kubernetes clusters:

  • Kops
  • GKE
  • EKS

Kubernetes tools:

  • Helm
  • Helm Charts from their repository

Supported built in services

These are the list of services that are maintained for each cloud

Service Name Supported in AWS Supported in GCP source
cert-manager yes yes helm/stable
cluster-autoscaler yes no helm/stable
external-dns yes yes helm/stable
graylog yes yes helm/stable
jenkins yes yes helm/stable
kube-bench yes yes helm/stable
kube-downscaler yes yes helm/stable
loki yes yes loki
nginx-ingress yes yes helm/stable
prometheus blackbox exporter yes yes helm/stable
prometheus operator yes yes helm/stable
sumologic-fluentd yes yes helm/stable
threatstack yes yes Threatstack
helm tiller -rbac enabled yes yes -
vault-helm yes yes Hashicorp

Who is using this

Parsable.com
up.audio
karunalabs.com

If you too are using kubernetes-common-services; please submit a PR to add your organization to the list!

Topology

The AWS Kops topology

aws kops topology

  • A very isolated VPC with only a few public IP address exposed to the internet
  • Dedicated subnets for each item types. This allows you to segregate items better.
  • Redundant Kubernetes masters in 3 availability zones
  • Redundant Kubernetes worker nodes in 3 availability zones

GCP GKE

Kubernetes on GCP via GKE clusters

aws kops topology

  • A very isolated VPC with only a few public IP address exposed to the internet
  • Dedicated subnets for each item types. This allows you to segregate items better.
  • Redundant Kubernetes masters in 3 availability zones
  • Redundant Kubernetes worker nodes in 3 availability zones

How do I start using this?

There are various docs and guides in the docs directory.

Read the setup

This is the first thing you should read. This has all of the setup information that you will need to get started.

main doc

The manual way for a Kops cluster

This is a more manual walk through on how to create a cluster using this project. The intention here is to give you a deep dive into what goes into creating a Kops cluster:

the-manual-way

Creating a Kops cluster on AWS the easier way

the "easier way" takes the manual steps in the previous example and hides most of the steps in a script where you can just run:

the-easier-way

Need a DevOps consultant?

ManagedKube is a boutique DevOps consulting firm that helps companies run large-scale, reliable applications in a GitOps workflow.

We work side-by-side with our client's development team to architect, design, build, optimize, and operate infrastructure in the cloud (AWS and GCP).

We specialize in Docker/Kubernetes containerized infrastructure.

Check us out at: https://managedkube.com/

Or email us at: [email protected]

License

Copyright 2019 Kong Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].