Skip to content
Snippets Groups Projects
Commit 5fe4ccbe authored by Edward Welch's avatar Edward Welch
Browse files

adding namespace to ksonnet config, moved images into a config file

parent 34bb9db7
No related branches found
No related tags found
No related merge requests found
loki-canary ./loki-canary
\ No newline at end of file \ No newline at end of file
{
_images+:: {
loki_canary: 'grafana/loki-canary:latest',
},
}
\ No newline at end of file
local k = import 'ksonnet-util/kausal.libsonnet'; local k = import 'ksonnet-util/kausal.libsonnet';
local config = import 'config.libsonnet';
k + config {
namespace: $.core.v1.namespace.new($._config.namespace),
k {
local container = $.core.v1.container, local container = $.core.v1.container,
loki_canary_args:: { loki_canary_args:: {
labelvalue: "$(POD_NAME)", labelvalue: "$(POD_NAME)",
}, },
_images+:: {
loki_canary: 'grafana/loki-canary:latest',
},
loki_canary_container:: loki_canary_container::
container.new('loki-canary', $._images.loki_canary) + container.new('loki-canary', $._images.loki_canary) +
container.withPorts($.core.v1.containerPort.new('http-metrics', 80)) + container.withPorts($.core.v1.containerPort.new('http-metrics', 80)) +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment