https://github.com/duologic/k3d-skel
https://github.com/duologic/k3d-skel
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/duologic/k3d-skel
- Owner: Duologic
- Created: 2020-02-13T08:17:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T08:29:49.000Z (over 6 years ago)
- Last Synced: 2025-01-27T10:43:29.513Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reference implementation with k3d and tanka
This sets up a local Kubernetes cluster with Grafana and Prometheus
.
## Requirements
* [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
* [k3d](https://github.com/rancher/k3d/)
* [tanka](https://github.com/grafana/tanka/)
* [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler/)
## Installation
By default, this installs a local k3d cluster.
```bash
export CLUSTER_NAME=k3d
export SERVER=localhost
./create-k3d-cluster
export KUBECONFIG="$(k3d get-kubeconfig --name=$CLUSTER_NAME):$HOME/.kube/config"
./install
```
Go to http://localhost:8080/
## Remote Docker
It can be expanded to use a remote Docker host.
```bash
export CLUSTER_NAME=k3d
export SERVER=
export DOCKER_HOST=tcp://:
./create-k3d-cluster
export KUBECONFIG="$(k3d get-kubeconfig --name=$CLUSTER_NAME):$HOME/.kube/config"
tk env set --server-from-context $CLUSTER_NAME environments/default/
./install
```
Go to http://*remote-ip*:8080/