-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
635 changed files
with
2,123 additions
and
32,457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1 @@ | ||
(import 'ksonnet-util/kausal.libsonnet') | ||
{ | ||
core+: { | ||
v1+: { | ||
// Extend service | ||
service+: { | ||
new(name, selector={}, ports=[]):: | ||
super.new(name, selector, ports) | ||
+ { | ||
dns: std.trace('found dns', '%s.%s.svc.cluster.local' % [self.metadata.name, $._config.namespace]), | ||
}, | ||
}, | ||
}, | ||
}, | ||
} | ||
+ | ||
{ | ||
_config+:: { | ||
namespace: 'test', | ||
}, | ||
|
||
account: | ||
$.core.v1.serviceAccount.new('a'), | ||
|
||
sts: | ||
$.apps.v1.statefulSet.new('name', 1, [], volumeClaims=[], podLabels={}) | ||
+ $.util.antiAffinity, | ||
|
||
svc: $.util.serviceFor( | ||
self.sts, | ||
), | ||
} | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"apiVersion": "tanka.dev/v1alpha1", | ||
"kind": "Environment", | ||
"metadata": { | ||
"name": "environments/default" | ||
}, | ||
"spec": { | ||
"apiServer": "", | ||
"namespace": "default", | ||
"resourceDefaults": {}, | ||
"expectVersions": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
local gateway = import 'loki/gateway.libsonnet'; | ||
local loki = import 'loki/loki.libsonnet'; | ||
local promtail = import 'promtail/promtail.libsonnet'; | ||
|
||
loki + promtail + gateway { | ||
_config+:: { | ||
namespace: 'loki', | ||
htpasswd_contents: 'loki:$apr1$H4yGiGNg$ssl5/NymaGFRUvxIV1Nyr.', | ||
|
||
// S3 variables remove if not using aws | ||
storage_backend: 's3,dynamodb', | ||
s3_access_key: 'key', | ||
s3_secret_access_key: 'secret access key', | ||
s3_address: 'url', | ||
s3_bucket_name: 'loki-test', | ||
dynamodb_region: 'region', | ||
|
||
using_boltdb_shipper: false, | ||
|
||
promtail_config+: { | ||
clients: [{ | ||
scheme:: 'http', | ||
hostname:: 'gateway.%(namespace)s.svc' % $._config, | ||
username:: 'loki', | ||
password:: 'password', | ||
container_root_path:: '/var/lib/docker', | ||
}], | ||
}, | ||
|
||
replication_factor: 3, | ||
consul_replicas: 1, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"apiVersion": "tanka.dev/v1alpha1", | ||
"kind": "Environment", | ||
"metadata": { | ||
"name": "environments/loki" | ||
}, | ||
"spec": { | ||
"apiServer": "", | ||
"namespace": "loki", | ||
"resourceDefaults": {}, | ||
"expectVersions": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(import 'github.com/jsonnet-libs/k8s-alpha/1.17/main.libsonnet') | ||
import 'github.com/jsonnet-libs/k8s-alpha/1.16/main.libsonnet' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github.com/grafana/jsonnet-libs/consul |
65 changes: 65 additions & 0 deletions
65
vendor/github.com/grafana/jsonnet-libs/consul/README.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.