This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config toggle for heapster, influxdb, grafana
Current clusters will have these enabled by default. Newly created clusters through init has them toggled false. Signed-off-by: JoshVanL <[email protected]>
- Loading branch information
Showing
13 changed files
with
298 additions
and
19 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
|
@@ -40,6 +40,7 @@ Golang | |
Grafana | ||
gz | ||
Hashicorp | ||
heapster | ||
heptio | ||
hostname | ||
iam | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,13 +1,18 @@ | ||
class kubernetes_addons::grafana( | ||
$image=$::kubernetes_addons::params::grafana_image, | ||
$version=$::kubernetes_addons::params::grafana_version, | ||
$enabled = true, | ||
) inherits ::kubernetes_addons::params { | ||
require ::kubernetes | ||
|
||
kubernetes::apply{'heapster-grafana': | ||
manifests => [ | ||
template('kubernetes_addons/grafana-svc.yaml.erb'), | ||
template('kubernetes_addons/grafana-deployment.yaml.erb'), | ||
], | ||
if $enabled { | ||
kubernetes::apply{'heapster-grafana': | ||
manifests => [ | ||
template('kubernetes_addons/grafana-svc.yaml.erb'), | ||
template('kubernetes_addons/grafana-deployment.yaml.erb'), | ||
], | ||
} | ||
} else { | ||
kubernetes::delete{'heapster-grafana':} | ||
} | ||
} |
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,13 +1,18 @@ | ||
class kubernetes_addons::influxdb( | ||
$image=$::kubernetes_addons::params::influxdb_image, | ||
$version=$::kubernetes_addons::params::influxdb_version, | ||
$enabled = true, | ||
) inherits ::kubernetes_addons::params { | ||
require ::kubernetes | ||
|
||
kubernetes::apply{'heapster-influxdb': | ||
manifests => [ | ||
template('kubernetes_addons/influxdb-svc.yaml.erb'), | ||
template('kubernetes_addons/influxdb-deployment.yaml.erb'), | ||
], | ||
if $enabled { | ||
kubernetes::apply{'heapster-influxdb': | ||
manifests => [ | ||
template('kubernetes_addons/influxdb-svc.yaml.erb'), | ||
template('kubernetes_addons/influxdb-deployment.yaml.erb'), | ||
], | ||
} | ||
} else { | ||
kubernetes::delete{'heapster-influxdb':} | ||
} | ||
} |