All Projects → coder-society → k8s-aws

coder-society / k8s-aws

Licence: MIT License
A kops wrapper script for bootstrapping Kubernetes on AWS

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to k8s-aws

kubernetes-automation-toolkit
This repository contains code examples and documentation for learning how applications can be developed with Kubernetes
Stars: ✭ 51 (+54.55%)
Mutual labels:  prometheus-operator
Prometheus Book
Prometheus操作指南
Stars: ✭ 2,637 (+7890.91%)
Mutual labels:  prometheus-operator
Kube Prometheus
Use Prometheus to monitor Kubernetes and applications running on Kubernetes
Stars: ✭ 3,607 (+10830.3%)
Mutual labels:  prometheus-operator

k8s-aws

This is a kops wrapper script for creating Kubernetes clusters on AWS and maintaining them. Certain addons are also installed into newly created clusters:

  • Heapster
  • Kubernetes Dashboard
  • Elasticsearch/Fluentd/Kibana (EFK) logging stack
  • Prometheus Operator monitoring stack

The cluster is additionally set up with RBAC authorization for heightened security.

Requirements

We use Python 3. To install dependencies, issue the following command at the root of this project: pip3 install -r requirements.txt.

Secrets

Write your secrets in secrets.yaml, see secrets.yaml.sample.

Usage

The ./kops script supports a few subcommands and a number of arguments:

Create a Cluster

The create subcommand allows you to create a Kubernetes cluster within your AWS account.

Example:

./kops --aws_profile example create app staging [email protected] email-smtp.eu-west-1.amazonaws.com:587 example.com clusters.example.com

Logging

Kibana

In order to access Kibana, start kubectl --kubeconfig $KUBECONFIG proxy 8001 and open http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/kibana-logging in your browser. The username/password is elastic/changeme.

Monitoring

We use Prometheus, via CoreOS' Prometheus Operator, as our monitoring solution. In addition to Prometheus Operator itself, we install the whole kube-prometheus stack that among other things ensures that the Kubernetes cluster itself and the host infrastructure are monitored.

Upgrading to a New Version

When upgrading to a newer version of the Prometheus Operator stack, we need to first upgrade Prometheus Operator itself (by applying its manifests). Once this is ready, we can apply the manifests for the rest of the stack. Prometheus Operator will take care of upgrading corresponding components in the cluster.

Visualization

We use Grafana for visualizing monitoring information.

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].