-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* helmfile * prometheus exporter * Update docs * new line * update * env eks file * fix helmfile apply command * fix opencost templates chart * fix opencost * update env file * fix opencost template chart * remove opencost from prometheus * no aws access key needed * add dashboard to kind * update doc * new line * Re-word * Re-word * Update docs * Update docs * helmfile * prometheus exporter * Update docs * new line * update * env eks file * fix helmfile apply command * fix opencost templates chart * fix opencost * update env file * fix opencost template chart * remove opencost from prometheus * no aws access key needed * add dashboard to kind * update doc * new line * Re-word * Add scan pipeline * Bump golang.org/x/crypto in /scripts/chart-dep-updater (#37) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.26.0 to 0.31.0. - [Commits](golang/crypto@v0.26.0...v0.31.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Re-word * Update docs * Update docs --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Jon Tutcher <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Collom <[email protected]>
- Loading branch information
1 parent
1e48cf3
commit 957115e
Showing
19 changed files
with
366 additions
and
46 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
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 |
---|---|---|
@@ -0,0 +1,139 @@ | ||
repositories: | ||
- name: kyverno | ||
url: https://kyverno.github.io/kyverno/ | ||
- name: prometheus-opencost-exporter | ||
url: https://prometheus-community.github.io/helm-charts | ||
- name: prometheus | ||
url: https://prometheus-community.github.io/helm-charts | ||
- name: grafana | ||
url: https://grafana.github.io/helm-charts | ||
- name: vpa | ||
url: https://charts.fairwinds.com/stable | ||
- name: cert-manager | ||
url: https://charts.jetstack.io | ||
- name: fairwinds-stable | ||
url: https://charts.fairwinds.com/stable | ||
|
||
--- | ||
helmDefaults: | ||
wait: true | ||
timeout: 1200 | ||
--- | ||
environments: | ||
default: | ||
values: | ||
- "./config/{{ requiredEnv "HOST_ENV" }}/enabled.yaml" | ||
--- | ||
releases: | ||
- name: kyverno | ||
version: "3.2.6" | ||
chart: kyverno/kyverno | ||
condition: kyverno.enabled | ||
namespace: finops-stack | ||
values: | ||
- "./config/common/kyverno-values.yaml" | ||
- "./config/{{ requiredEnv "HOST_ENV" }}/kyverno-values.yaml" | ||
|
||
- name: finops-policies | ||
version: "0.1.0" | ||
chart: "../charts/finops-policies" | ||
condition: finops-policies.enabled | ||
namespace: finops-stack | ||
disableValidationOnInstall: true | ||
needs: | ||
- kyverno | ||
|
||
- name: cert-manager | ||
version: v1.15.3 | ||
chart: cert-manager/cert-manager | ||
condition: cert-manager.enabled | ||
namespace: cert-manager | ||
values: | ||
- "./config/common/cert-manager-values.yaml" | ||
- "./config/{{ requiredEnv "HOST_ENV" }}/cert-manager-values.yaml" | ||
- global: | ||
leaderElection: | ||
namespace: cert-manager | ||
commonLabels: | ||
cost-center-label: "xyz" | ||
- serviceAccount: | ||
annotations: | ||
{{ env "CERT_MANAGER_SA_ANNOTATION" }} | ||
|
||
- name: cert-manager-config | ||
version: "0.1.0" | ||
chart: "../charts/cert-manager-config" | ||
condition: cert-manager.enabled | ||
namespace: finops-stack | ||
disableValidationOnInstall: true | ||
needs: | ||
- cert-manager/cert-manager | ||
values: | ||
- email: {{ env "CERT_MANAGER_EMAIL" }} | ||
- grafanaTLSCert: | ||
hostname: {{ env "GRAFANA_FQDN" }} | ||
|
||
- name: grafana | ||
version: "8.4.7" | ||
chart: grafana/grafana | ||
condition: grafana.enabled | ||
namespace: finops-stack | ||
values: | ||
- "./config/common/grafana-values.yaml" | ||
- "./config/{{ requiredEnv "HOST_ENV" }}/grafana-values.yaml" | ||
- adminUser: {{ env "GRAFANA_ADMIN_USER" }} | ||
- adminPassword: {{ env "GRAFANA_ADMIN_PW" }} | ||
- serviceAccount: | ||
annotations: | ||
{{ env "GRAFANA_SA_ANNOTATION" }} | ||
|
||
# If you don't require ingress via an FQDN remove this ingress section | ||
- ingress: | ||
enabled: {{ env "GRAFANA_INGRESS" }} | ||
annotations: | ||
kubernetes.io/ingress.global-static-ip-name: {{ env "GRAFANA_PUBLIC_IP_NAME" }} | ||
hosts: | ||
- {{ env "GRAFANA_FQDN" }} | ||
# If you don't require https access to the Grafana dashboard remove this tls section | ||
tls: | ||
- secretName: {{ env "GRAFANA_FQDN" }}-tls | ||
hosts: | ||
- {{ env "GRAFANA_FQDN" }} | ||
needs: | ||
- cert-manager/cert-manager | ||
|
||
- name: vpa | ||
version: "4.5.0" | ||
chart: "vpa/vpa" | ||
condition: vpa.enabled | ||
namespace: finops-stack | ||
values: | ||
- "./config/common/vpa-values.yaml" | ||
|
||
- name: prometheus-opencost-exporter | ||
version: "0.1.1" | ||
chart: "prometheus-opencost-exporter/prometheus-opencost-exporter" | ||
condition: opencost-exporter.enabled | ||
namespace: finops-stack | ||
values: | ||
- "./config/common/prometheus-opencost-exporter-values.yaml" | ||
- "./config/{{ requiredEnv "HOST_ENV" }}/prometheus-opencost-exporter-values.yaml" | ||
|
||
- name: finops-stack-opencost-templates | ||
version: "0.1.0" | ||
chart: "../charts/opencost-config" | ||
condition: opencost-templates.enabled | ||
namespace: finops-stack | ||
disableValidationOnInstall: true | ||
values: | ||
- "./config/{{ requiredEnv "HOST_ENV" }}/opencost-templates-values.yaml" | ||
|
||
- name: goldilocks | ||
version: "9.0.0" | ||
chart: fairwinds-stable/goldilocks | ||
condition: goldilocks.enabled | ||
namespace: finops-stack | ||
values: | ||
- "./config/common/goldilocks-values.yaml" | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
datasources: | ||
datasources.yaml: | ||
apiVersion: 1 | ||
datasources: | ||
- name: Prometheus | ||
type: prometheus | ||
uid: "PFB5ABA51A8A585D7" | ||
url: http://prometheus-server | ||
isDefault: true | ||
editable: true | ||
ingress: | ||
enabled: false | ||
annotations: | ||
kubernetes.io/ingress.global-static-ip-name: "ip-name" | ||
hosts: | ||
- grafana.example.com |
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 @@ | ||
features: | ||
backgroundScan: | ||
skipResourceFilters: false # Important so that background Scan's Exclude Namespaces, etc | ||
config: | ||
resourceFiltersIncludeNamespaces: | ||
- kube-system | ||
webhooks: | ||
- namespaceSelector: | ||
matchExpressions: | ||
- key: kubernetes.io/metadata.name | ||
operator: NotIn | ||
values: | ||
- kube-system |
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,5 @@ | ||
dashboards: true | ||
opencost: | ||
customPricing: | ||
# -- This is only to enable custom pricing on on-premises or kind | ||
enabled: false |
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,18 @@ | ||
cloudCost: | ||
enabled: false | ||
opencost: | ||
cloudCost: | ||
enabled: false | ||
prometheus: | ||
external: | ||
enabled: false | ||
# url: http://prometheus-server | ||
internal: | ||
# -- Use in-cluster Prometheus | ||
enabled: true | ||
# -- Service name of in-cluster Prometheus | ||
serviceName: prometheus-server | ||
# -- Namespace of in-cluster Prometheus | ||
namespaceName: finops-stack | ||
# -- Service port of in-cluster Prometheus | ||
port: 80 |
27 changes: 27 additions & 0 deletions
27
installation/config/eks/prometheus-opencost-exporter-values.yaml
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,27 @@ | ||
service: | ||
enabled: true | ||
opencost: | ||
prometheus: | ||
external: | ||
enabled: false | ||
# url: http://prometheus-server | ||
internal: | ||
# -- Use in-cluster Prometheus | ||
enabled: true | ||
# -- Service name of in-cluster Prometheus | ||
serviceName: prometheus-server | ||
# -- Namespace of in-cluster Prometheus | ||
namespaceName: finops-stack | ||
# -- Service port of in-cluster Prometheus | ||
port: 80 | ||
exporter: | ||
persistence: | ||
enabled: false | ||
# -- Annotations for persistent volume | ||
annotations: {} | ||
# -- Access mode for persistent volume | ||
accessMode: "" | ||
# -- Storage class for persistent volume | ||
storageClass: "standard-rwo" | ||
# -- Size for persistent volume | ||
size: "10g" |
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,17 @@ | ||
extraScrapeConfigs: | | ||
- job_name: opencost | ||
honor_labels: true | ||
scrape_interval: 1m | ||
scrape_timeout: 10s | ||
metrics_path: /metrics | ||
scheme: http | ||
dns_sd_configs: | ||
- names: | ||
- opencost.opencost | ||
type: 'A' | ||
port: 9003 | ||
alertmanager: | ||
enabled: false | ||
prometheus-pushgateway: | ||
enabled: false |
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,2 +1,7 @@ | ||
dashboards: true | ||
opencost: | ||
customPricing: | ||
# -- This is only to enable custom pricing on on-premises or kind | ||
enabled: false | ||
gke: | ||
podmonitoring: true | ||
podmonitoring: true |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dashboards: true | ||
opencost: | ||
configFileName: default | ||
provider: kind | ||
|
Oops, something went wrong.