2017-11-29 09:27:50 +01:00
# Typhoon <img align="right" src="https://storage.googleapis.com/poseidon/typhoon-logo.png">
2017-08-07 03:27:45 +02:00
Typhoon is a minimal and free Kubernetes distribution.
* Minimal, stable base Kubernetes distribution
* Declarative infrastructure and configuration
* [Free ](#social-contract ) (freedom and cost) and privacy-respecting
* Practical for labs, datacenters, and clouds
Typhoon distributes upstream Kubernetes, architectural conventions, and cluster addons, much like a GNU/Linux distribution provides the Linux kernel and userspace components.
2017-11-29 09:56:53 +01:00
## Features <a href="https://www.cncf.io/certification/software-conformance/"><img align="right" src="https://storage.googleapis.com/poseidon/certified-kubernetes.png"></a>
2017-08-07 03:27:45 +02:00
2023-03-01 23:41:00 +01:00
* Kubernetes v1.26.2 (upstream)
2020-07-18 22:27:56 +02:00
* Single or multi-master, [Calico ](https://www.projectcalico.org/ ) or [Cilium ](https://github.com/cilium/cilium ) or [flannel ](https://github.com/coreos/flannel ) networking
2020-05-14 06:57:09 +02:00
* On-cluster etcd with TLS, [RBAC ](https://kubernetes.io/docs/admin/authorization/rbac/ )-enabled, [network policy ](https://kubernetes.io/docs/concepts/services-networking/network-policies/ ), SELinux enforcing
2020-10-21 07:47:19 +02:00
* Advanced features like [worker pools ](advanced/worker-pools/ ), [preemptible ](fedora-coreos/google-cloud/#preemption ) workers, and [snippets ](advanced/customization/#hosts ) customization
2019-01-30 07:56:03 +01:00
* Ready for Ingress, Prometheus, Grafana, CSI, or other [addons ](addons/overview/ )
2017-08-07 03:27:45 +02:00
## Modules
2019-06-20 06:29:43 +02:00
Typhoon provides a Terraform Module for each supported operating system and platform.
2017-08-07 03:27:45 +02:00
2020-02-11 09:12:54 +01:00
Typhoon is available for [Fedora CoreOS ](https://getfedora.org/coreos/ ).
2019-07-18 08:52:34 +02:00
| Platform | Operating System | Terraform Module | Status |
|---------------|------------------|------------------|--------|
2020-03-17 06:10:34 +01:00
| AWS | Fedora CoreOS | [aws/fedora-coreos/kubernetes ](fedora-coreos/aws.md ) | stable |
2020-04-13 00:49:48 +02:00
| Azure | Fedora CoreOS | [azure/fedora-coreos/kubernetes ](fedora-coreos/azure.md ) | alpha |
2020-12-04 23:02:55 +01:00
| Bare-Metal | Fedora CoreOS | [bare-metal/fedora-coreos/kubernetes ](fedora-coreos/bare-metal.md ) | stable |
2020-05-21 07:53:51 +02:00
| DigitalOcean | Fedora CoreOS | [digital-ocean/fedora-coreos/kubernetes ](fedora-coreos/digitalocean.md ) | beta |
2021-04-17 19:52:59 +02:00
| Google Cloud | Fedora CoreOS | [google-cloud/fedora-coreos/kubernetes ](fedora-coreos/google-cloud.md ) | stable |
2019-07-18 08:52:34 +02:00
2021-04-18 04:15:51 +02:00
| Platform | Operating System | Terraform Module | Status |
|---------------|------------------|------------------|--------|
| AWS | Fedora CoreOS (ARM64) | [aws/fedora-coreos/kubernetes ](advanced/arm64.md ) | alpha |
2020-05-21 07:53:51 +02:00
Typhoon is available for [Flatcar Linux ](https://www.flatcar-linux.org/releases/ ).
2020-02-11 09:12:54 +01:00
| Platform | Operating System | Terraform Module | Status |
|---------------|------------------|------------------|--------|
2020-10-21 07:47:19 +02:00
| AWS | Flatcar Linux | [aws/flatcar-linux/kubernetes ](flatcar-linux/aws.md ) | stable |
| Azure | Flatcar Linux | [azure/flatcar-linux/kubernetes ](flatcar-linux/azure.md ) | alpha |
| Bare-Metal | Flatcar Linux | [bare-metal/flatcar-linux/kubernetes ](flatcar-linux/bare-metal.md ) | stable |
| DigitalOcean | Flatcar Linux | [digital-ocean/flatcar-linux/kubernetes ](flatcar-linux/digitalocean.md ) | beta |
2022-01-29 05:59:15 +01:00
| Google Cloud | Flatcar Linux | [google-cloud/flatcar-linux/kubernetes ](flatcar-linux/google-cloud.md ) | stable |
2020-04-11 22:18:26 +02:00
2022-01-14 18:59:11 +01:00
| Platform | Operating System | Terraform Module | Status |
|---------------|------------------|------------------|--------|
| AWS | Flatcar Linux (ARM64) | [aws/flatcar-linux/kubernetes ](advanced/arm64.md ) | alpha |
2022-10-14 05:49:01 +02:00
| Azure | Flatcar Linux (ARM64) | [azure/flatcar-linux/kubernetes ](advanced/arm64.md ) | alpha |
2022-01-14 18:59:11 +01:00
2018-04-24 04:55:28 +02:00
## Documentation
2017-08-07 03:27:45 +02:00
2018-04-26 11:41:04 +02:00
* Architecture [concepts ](architecture/concepts.md ) and [operating-systems ](architecture/operating-systems.md )
2020-04-13 00:49:48 +02:00
* Fedora CoreOS tutorials for [AWS ](fedora-coreos/aws.md ), [Azure ](fedora-coreos/azure.md ), [Bare-Metal ](fedora-coreos/bare-metal.md ), [DigitalOcean ](fedora-coreos/digitalocean.md ), and [Google Cloud ](fedora-coreos/google-cloud.md )
2020-05-21 07:53:51 +02:00
* Flatcar Linux tutorials for [AWS ](flatcar-linux/aws.md ), [Azure ](flatcar-linux/azure.md ), [Bare-Metal ](flatcar-linux/bare-metal.md ), [DigitalOcean ](flatcar-linux/digitalocean.md ), and [Google Cloud ](flatcar-linux/google-cloud.md )
2017-08-07 03:27:45 +02:00
## Example
Define a Kubernetes cluster by using the Terraform module for your chosen platform and operating system. Here's a minimal example.
```tf
2019-12-06 07:56:42 +01:00
module "yavin" {
2023-03-01 23:41:00 +01:00
source = "git::https://github.com/poseidon/typhoon//google-cloud/fedora-coreos/kubernetes?ref=v1.26.2"
2017-08-07 03:27:45 +02:00
# Google Cloud
2018-03-26 05:41:52 +02:00
cluster_name = "yavin"
2017-11-04 18:57:12 +01:00
region = "us-central1"
2017-08-07 03:27:45 +02:00
dns_zone = "example.com"
dns_zone_name = "example-zone"
2018-03-26 05:41:52 +02:00
# configuration
2021-08-11 06:48:18 +02:00
ssh_authorized_key = "ssh-ed25519 AAAAB3Nz..."
2020-01-23 10:09:09 +01:00
2018-03-26 05:41:52 +02:00
# optional
worker_count = 2
2017-08-07 03:27:45 +02:00
}
2019-12-06 07:56:42 +01:00
# Obtain cluster kubeconfig
resource "local_file" "kubeconfig-yavin" {
content = module.yavin.kubeconfig-admin
filename = "/home/user/.kube/configs/yavin-config"
}
2017-08-07 03:27:45 +02:00
```
2018-08-27 08:39:41 +02:00
Initialize modules, plan the changes to be made, and apply the changes.
2017-08-07 03:27:45 +02:00
```sh
2018-08-27 08:39:41 +02:00
$ terraform init
2017-08-07 03:27:45 +02:00
$ terraform plan
2019-12-11 07:56:50 +01:00
Plan: 62 to add, 0 to change, 0 to destroy.
2017-08-07 03:27:45 +02:00
$ terraform apply
2019-12-11 08:14:12 +01:00
Apply complete! Resources: 62 added, 0 changed, 0 destroyed.
2017-08-07 03:27:45 +02:00
```
2017-11-07 06:19:11 +01:00
In 4-8 minutes (varies by platform), the cluster will be ready. This Google Cloud example creates a `yavin.example.com` DNS record to resolve to a network load balancer across controller nodes.
2017-08-07 03:27:45 +02:00
```
2019-12-06 07:56:42 +01:00
$ export KUBECONFIG=/home/user/.kube/configs/yavin-config
2017-08-07 03:27:45 +02:00
$ kubectl get nodes
2019-09-23 02:37:23 +02:00
NAME ROLES STATUS AGE VERSION
2023-03-01 23:41:00 +01:00
yavin-controller-0.c.example-com.internal < none > Ready 6m v1.26.2
yavin-worker-jrbf.c.example-com.internal < none > Ready 5m v1.26.2
yavin-worker-mzdm.c.example-com.internal < none > Ready 5m v1.26.2
2017-08-07 03:27:45 +02:00
```
2017-08-28 01:09:23 +02:00
List the pods.
2017-08-07 03:27:45 +02:00
```
$ kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
2017-09-23 22:02:18 +02:00
kube-system calico-node-1cs8z 2/2 Running 0 6m
kube-system calico-node-d1l5b 2/2 Running 0 6m
kube-system calico-node-sp9ps 2/2 Running 0 6m
2018-11-03 23:04:08 +01:00
kube-system coredns-1187388186-dkh3o 1/1 Running 0 6m
2018-07-02 04:41:57 +02:00
kube-system coredns-1187388186-zj5dl 1/1 Running 0 6m
2019-09-06 08:12:09 +02:00
kube-system kube-apiserver-controller-0 1/1 Running 0 6m
kube-system kube-controller-manager-controller-0 1/1 Running 0 6m
2017-08-07 03:27:45 +02:00
kube-system kube-proxy-117v6 1/1 Running 0 6m
kube-system kube-proxy-9886n 1/1 Running 0 6m
kube-system kube-proxy-njn47 1/1 Running 0 6m
2019-09-06 08:12:09 +02:00
kube-system kube-scheduler-controller-0 1/1 Running 0 6m
2017-08-07 03:27:45 +02:00
```
2017-09-23 22:02:18 +02:00
## Help
2021-05-26 20:31:25 +02:00
Schedule a meeting via [Github Sponsors ](https://github.com/sponsors/poseidon?frequency=one-time ) to discuss your use case.
2017-09-23 22:02:18 +02:00
2018-03-11 22:51:40 +01:00
## Motivation
2017-08-07 03:27:45 +02:00
Typhoon powers the author's cloud and colocation clusters. The project has evolved through operational experience and Kubernetes changes. Typhoon is shared under a free license to allow others to use the work freely and contribute to its upkeep.
2018-03-11 22:51:40 +01:00
Typhoon addresses real world needs, which you may share. It is honest about limitations or areas that aren't mature yet. It avoids buzzword bingo and hype. It does not aim to be the one-solution-fits-all distro. An ecosystem of Kubernetes distributions is healthy.
2017-08-07 03:27:45 +02:00
## Social Contract
2021-01-16 21:56:59 +01:00
Typhoon is not a product, trial, or free-tier. Typhoon does not offer support, services, or charge money. And Typhoon is independent of operating system or platform vendors.
2017-08-07 03:27:45 +02:00
Typhoon clusters will contain only [free ](https://www.debian.org/intro/free ) components. Cluster components will not collect data on users without their permission.
2018-03-11 22:51:40 +01:00
2021-01-16 21:56:59 +01:00
## Sponsors
2018-03-11 22:51:40 +01:00
2021-03-21 19:31:50 +01:00
Poseidon's Github [Sponsors ](https://github.com/sponsors/poseidon ) support the infrastructure and operational costs of providing Typhoon.
< a href = "https://www.digitalocean.com/" >
< img src = "https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/SVG/DO_Logo_horizontal_blue.svg" width = "201px" >
< / a >
< br >
If you'd like your company here, please contact dghubble at psdn.io.
2018-03-11 22:51:40 +01:00