Skip to content

Instantly share code, notes, and snippets.

@Aitem
Created August 10, 2022 21:29
Show Gist options
  • Save Aitem/c5ee3c1b0fdc8300077c539f1eeaaaef to your computer and use it in GitHub Desktop.
Save Aitem/c5ee3c1b0fdc8300077c539f1eeaaaef to your computer and use it in GitHub Desktop.
Simple infrabox example
{ns dev
import #{skipper infrabox infrabox.alerts}
cluster
{:zen/tags #{skipper/cluster}
:engine skipper/k8s
:context "kind-kind"}
deploy
{:zen/tags #{skipper/deploy}
:cluster cluster
:components #{grafana prometheus
dev-db dev}}
grafana
{:zen/tags #{skipper/component}
:engine infrabox/grafana
:host "grafana.aidbox.co"
:admin {:user "user"
:password "pass"}}
prometheus
{:zen/tags #{skipper/component}
:engine infrabox/monitoring
:alerts #{infrabox.alerts/default-alerts}
:project {:name "local"}
:auth {:user "hs-monitoring" :password "admin"}
:host "prometheus.aidbox.co"}
dev-db
{:zen/tags #{skipper/component}
:engine infrabox/postgres
:version "14.2"
:storage {:size 3}
:connection {:user "postgres"
:password "postgres"}}
dev
{:zen/tags #{skipper/component}
:engine infrabox/multibox
:name "dev"
:version "2206"
:db dev-db
:license "some-license"
:cluster-secret "secret"
:cluster-domain "secret.aidbox.co"
:superuser {:id "root" :password "secret"}
:admin {:id "admin" :password "secret"}
:client {:id "admin" :secret "secret"}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment