A repo of DigitalOcean Kubernetes examples with scripts for setup and testing.
- Install
doctl
and authenticate with your account usingdoctl auth init
. cd
into the directory of an example and runscript/up
to spin up a cluster with the example stack, andscript/down
to delete the cluster and everything on it.- If you hit a problem, open an issue or PR the fix!
- Note that associated DigitalOcean LBs and Volumes are not cleaned up by the scripts, you have to do that manually for now.
- Terraform - will provision a cluster using the DO Terraform provider, wait for everything to be running, and tear it down.
- Network Policies - a specification of how groups of pods are allowed to communicate with each other and other network endpoints.
- metrics-server - a cluster-wide aggregator of resource usage data.
- prometheus - a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true.
- loki - a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus.
- linkerd - a resilient service mesh for cloud native apps.
- istio - an open platform for providing a uniform way to integrate microservices, manage traffic flow across microservices, enforce policies and aggregate telemetry data.
- monitoring - combines prometheus, loki, and linkerd into a light-weight monitoring stack.
- HPA - automatically scales the number of pods in a replication controller, deployment or replica set based on observed CPU utilization (or, with custom metrics support, on some other application-provided metrics).
- VPA - will set the requests automatically based on usage and thus allow proper scheduling onto nodes so that appropriate resource amount is available for each pod.
- Traefik ingress
- Nginx ingress
- Monitoring example scraping other clusters
- Google / Github auth proxy
- Game server
- Big data / Spark / HDFS
- Gitlab
- OpenFaaS
- Wordpress app
- Load Balancer via Cloudflare + HAProxy/Traefik/Nginx
- Kubeflow
- Rancher
- Rook
- GlusterFS
- KubeDB
- Harbor