generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Introducing Grafana(7.0.2) and Prometheus(25.4.0) Addon (#44)
* feat: introducing jaeger and prometheus * update default override for testing * ran terraform format command * update ref branch in ci * readme: Update add-on's readme * update default setting for jaeger dependency * readme: Update add-on's readme * updated a jaeger with manifest file deployment * readme: Update add-on's readme * feat: added grafana helm addon * readme: Update add-on's readme * fix: fix typo in grafana resurce * fix: fix terraform format * fix: remove test example * fix: added grafana in complete example * feat: update multi document apply in single yaml for jaeger addon * ran terraform format command * fix- update trigger point for readme workflow * fix: added output in the root structure to get addons details in example * fix- terraform code format command ran * fix: removed jaeger manifest deployment * fix- terraform code format command ran * fix: added jaeger helm config file for jaeger deploy * fix- terraform code format command ran * feat- added vs for grafana service * feat- added grafana virtual service and update prometheus readme * feat- added grafana virtual service and update prometheus readme * fix: remove jaeger addon --------- Co-authored-by: Anmol Nagpal <anmol@clouddrove.com> Co-authored-by: clouddrove-ci <84795582+clouddrove-ci@users.noreply.github.com> Co-authored-by: Himanshu Ahirwar <himanshu.ahirwar@clouddrove.com>
- Loading branch information
1 parent
c353265
commit 7ad9b97
Showing
38 changed files
with
3,283 additions
and
156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
name: grafana | ||
namespace: monitoring | ||
spec: | ||
hosts: | ||
- dash.test.clouddrove.com | ||
gateways: | ||
- istio-system/istio-gateway | ||
http: | ||
- route: | ||
- destination: | ||
host: grafana | ||
port: | ||
number: 80 |
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 @@ | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: "eks.amazonaws.com/nodegroup" | ||
operator: In | ||
values: | ||
- "critical" | ||
resources: | ||
limits: | ||
cpu: 300m | ||
memory: 250Mi | ||
requests: | ||
cpu: 50m | ||
memory: 150Mi |
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,36 @@ | ||
server: | ||
## Node affinity for particular node in which labels key is "Infra-Services" and value is "true" | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: "eks.amazonaws.com/nodegroup" | ||
operator: In | ||
values: | ||
- "critical" | ||
|
||
persistentVolume: # Persistent volume will not be deployed for prometheus server pod - Enable if EBS or EFS CSI Driver is installed | ||
enabled: false | ||
|
||
resources: | ||
limits: | ||
cpu: 300m | ||
memory: 250Mi | ||
requests: | ||
cpu: 50m | ||
memory: 150Mi | ||
|
||
alertmanager: # Dependency for prometheus server | ||
enabled: true | ||
persistence: # Persistent volume will not be deployed for alertmanager - Enable if EBS or EFS CSI Driver is installed | ||
enabled: false | ||
|
||
kube-state-metrics: # Dependency for prometheus server | ||
enabled: true | ||
|
||
prometheus-node-exporter: # Dependency for prometheus server | ||
enabled: true | ||
|
||
prometheus-pushgateway: # Dependency for prometheus server | ||
enabled: true |
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ terraform { | |
} | ||
kubectl = { | ||
source = "gavinbunney/kubectl" | ||
version = ">= 1.7.0" | ||
version = ">= 1.14.0" | ||
} | ||
} | ||
} |
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 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
name: grafana | ||
namespace: istio-system | ||
spec: | ||
hosts: | ||
- dash.test.clouddrove.com | ||
gateways: | ||
- istio-system/istio-gateway | ||
http: | ||
- route: | ||
- destination: | ||
host: grafana | ||
port: | ||
number: 80 |
16 changes: 16 additions & 0 deletions
16
_examples/external-eks/config/grafana/override-grafana.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,16 @@ | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: "eks.amazonaws.com/nodegroup" | ||
operator: In | ||
values: | ||
- "critical" | ||
resources: | ||
limits: | ||
cpu: 300m | ||
memory: 250Mi | ||
requests: | ||
cpu: 50m | ||
memory: 150Mi |
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 @@ | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: "eks.amazonaws.com/nodegroup" | ||
operator: In | ||
values: | ||
- "critical" | ||
resources: | ||
limits: | ||
cpu: 300m | ||
memory: 250Mi | ||
requests: | ||
cpu: 50m | ||
memory: 150Mi |
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,47 @@ | ||
server: | ||
service: | ||
## If false, no Service will be created for the Prometheus server | ||
## | ||
enabled: true | ||
annotations: | ||
service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing" | ||
service.beta.kubernetes.io/aws-load-balancer-name: "prometheus" | ||
labels: {} | ||
clusterIP: "" | ||
|
||
## Node affinity for particular node in which labels key is "Infra-Services" and value is "true" | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: "eks.amazonaws.com/nodegroup" | ||
operator: In | ||
values: | ||
- "critical" | ||
|
||
## List of IP addresses at which the Prometheus server service is available | ||
## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips | ||
## | ||
externalIPs: [] | ||
loadBalancerIP: "" | ||
loadBalancerSourceRanges: [] | ||
servicePort: 80 | ||
sessionAffinity: None | ||
type: LoadBalancer | ||
|
||
persistentVolume: | ||
accessModes: | ||
- ReadWriteOnce | ||
enabled: true | ||
mountPath: /data | ||
size: 20Gi | ||
storageClass: gp2 | ||
|
||
resources: | ||
limits: | ||
cpu: 300m | ||
memory: 250Mi | ||
requests: | ||
cpu: 50m | ||
memory: 150Mi |
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
Oops, something went wrong.