-
Notifications
You must be signed in to change notification settings - Fork 1
FinOps on EKS #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
FinOps on EKS #33
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
0050469
helmfile
maria-reynoso 1fe9f81
prometheus exporter
maria-reynoso f1df5d2
Update docs
maria-reynoso bb00b5f
new line
maria-reynoso 732740e
update
maria-reynoso 59b9a54
env eks file
maria-reynoso 2424a11
fix helmfile apply command
maria-reynoso ee0ee0e
fix opencost templates chart
maria-reynoso f02aa45
fix opencost
maria-reynoso d623fd1
update env file
maria-reynoso 148003d
fix opencost template chart
maria-reynoso f4f98a5
remove opencost from prometheus
maria-reynoso c0d43c0
no aws access key needed
maria-reynoso ccbbd77
add dashboard to kind
maria-reynoso 4222213
update doc
maria-reynoso 2ef6809
new line
maria-reynoso a17f4fe
Merge branch 'main' into add-eks-support
jontutcher 0480789
Re-word
maria-reynoso a8e4234
Merge branch 'add-eks-support' of https://github.com/jetstack/finops-…
maria-reynoso 08953b1
Re-word
maria-reynoso f686f3d
Update docs
maria-reynoso d59267e
Update docs
maria-reynoso f3f129f
helmfile
maria-reynoso 360eee1
prometheus exporter
maria-reynoso 7ac297a
Update docs
maria-reynoso 75c5cf1
new line
maria-reynoso c5ad787
update
maria-reynoso 4de7211
env eks file
maria-reynoso e512688
fix helmfile apply command
maria-reynoso c86edde
fix opencost templates chart
maria-reynoso 5f3193b
fix opencost
maria-reynoso 461662e
update env file
maria-reynoso 05c2e2d
fix opencost template chart
maria-reynoso ac75e15
remove opencost from prometheus
maria-reynoso 37a216c
no aws access key needed
maria-reynoso 0b0fefc
add dashboard to kind
maria-reynoso 0a8a84b
update doc
maria-reynoso c066b71
new line
maria-reynoso 4a64949
Re-word
maria-reynoso f7aec59
Add scan pipeline
maria-reynoso da27454
Bump golang.org/x/crypto in /scripts/chart-dep-updater (#37)
dependabot[bot] 6126f26
Re-word
maria-reynoso 9a46312
Update docs
maria-reynoso 57bf639
Update docs
maria-reynoso 8b78949
Merge branch 'add-eks-support' of https://github.com/jetstack/finops-…
maria-reynoso 66e0ed1
Merge branch 'main' into add-eks-support
davidcollom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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" | ||
maria-reynoso marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| hosts: | ||
| - grafana.example.com | ||
This file contains hidden or 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: | ||
maria-reynoso marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| matchExpressions: | ||
| - key: kubernetes.io/metadata.name | ||
| operator: NotIn | ||
| values: | ||
| - kube-system | ||
This file contains hidden or 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 hidden or 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 | ||
maria-reynoso marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.