- Shell 78%
- Go 22%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| base | ||
| demo-1-external-dns | ||
| demo-2-forwarding | ||
| demo-3-multi-cluster-dns | ||
| templates | ||
| .gitignore | ||
| Building and Operating a Highly Reliable Cloud Native DNS Service With Open Source Technologies ContainerDays 2024-09-03.pdf | ||
| create-3-cluster-setup.sh | ||
| create-kind-clusters.sh | ||
| destroy-kind.sh | ||
| LICENSE | ||
| prepare-demo1.sh | ||
| prepare-demo2-continued.sh | ||
| prepare-demo2-fresh.sh | ||
| prepare-demo3-continued.sh | ||
| prepare-demo3-fresh.sh | ||
| README.md | ||
| setup-kind.sh | ||
This repo is archived, please find the newest resources and more in the following repository: https://github.com/swisscom/cloud-native-telco
containerdays-2024-dns
Resources used for the ContainerDays 2024 Talk «Building and Operating a Highly Reliable Cloud Native DNS Service With Open Source Technologies»
Authors
Please feel free to approach us with feedback and questions!
Hoang Anh Mai hoanganh.mai@swisscom.com Fabian Schulz fabian.schulz1@swisscom.com Joel Studler joel.studler@swisscom.com
Contact us on slack:
Getting started
For docker engine / virtualization we use colima but any other tool for docker such as docker desktop should also work.
Prerequisites
- colima:
- brew install colima
- colima start dns1 -c 4 -m 4 --network-address
- colima ssh -p dns1 # ssh onto colima node
- edit /etc/sysctl.conf and add: # We need to increase the file handler limit of the linux distro
- fs.inotify.max_user_watches = 1048576
- fs.inotify.max_user_instances = 512
- edit /etc/sysctl.conf and add: # We need to increase the file handler limit of the linux distro
- colima restart dns1
- docker cli: brew install docker
- kind: brew install kind
Demo Environment setup
Call the prepare-demo scripts without parameters to create your environment. The prepare-demo scripts 2 & 3 come in two flavours:
- prepare-demoX-fresh.sh which first deletes the kind clusters and sets them up from scratch
- prepare-demoX-continued.sh which keeps the setup from the previous demo
Manual Environment setup
Use the create-kind-clusters.sh and setup-kind.sh scripts to create your environment. Below are the instructions for a 2-cluster setup, the scripts also support more than two if your machine does.
To create 2 kind clusters execute: ./create-kind-clusters.sh 2
The clusters will be named dns-0, dns-1.
The setup script accepts the cluster id and an optional clusternameprefix parameter, so call it for each cluster like that:
- ./setup-kind.sh 0
- ./setup-kind.sh 1
Environment teardown
To teardown the kind clusters simply execute: ./destroy-kind.sh 2