Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
schema_version: v1.0.0
application:
name: hello-world-rest
artifacts:
- id: f21148c1-f33f-46f0-8b7b-79977194f98e
name: pranay
gitCode:
type: branch
identifier: pranay
repo: https://github.com/cldcvr/codepipes-tutorials
dir: /VAN-4162
driver: github
- id: 46034980-a2b7-4607-b09e-313ea778f7b1
name: dockerhub-container
containerImage:
provider: dockerhub_container_registry
repo: yeasy/simple-web
reference: latest
versionTagPattern: '[a-f0-9]+'
12 changes: 12 additions & 0 deletions bundles/grafana-prometheus-loki-bundle/gcp/app-loki.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
schema_version: v1.0.0
application:
name: loki
artifacts:
- id: 051178b6-9506-45ea-b559-2f218b7d2c2f
name: github
gitCode:
type: branch
identifier: main
repo: https://github.com/cldcvr/codepipes-tutorials.git
dir: /
driver: github
12 changes: 12 additions & 0 deletions bundles/grafana-prometheus-loki-bundle/gcp/app-monitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
schema_version: v1.0.0
application:
name: monitor
artifacts:
- id: c0235a38-7009-4eb3-8442-4240777b7236
name: git
gitCode:
type: branch
identifier: main
repo: https://github.com/cldcvr/codepipes-tutorials.git
dir: /
driver: github
19 changes: 19 additions & 0 deletions bundles/grafana-prometheus-loki-bundle/gcp/app-nginx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
schema_version: v1.0.0
application:
name: nginx
artifacts:
- id: 5df5b837-b141-4524-8f53-f0d83b3d60ea
name: master
gitCode:
type: branch
identifier: main
repo: https://github.com/cldcvr/codepipes-tutorials.git
dir: /
driver: github
- id: b14895b8-8021-4cb2-8304-ca8498c4e6ed
name: dockerhub_container_registry
containerImage:
provider: dockerhub_container_registry
repo: dockersamples/k8s-wordsmith-web
reference: latest
versionTagPattern: '[a-f0-9]+'
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
schema_version: v1.0.0
deployment:
name: hello-world-rest-St
deploymentConfig:
artifact:
id: 46034980-a2b7-4607-b09e-313ea778f7b1
containerImage:
reference: latest
template:
moduleRefId: gcp:basic-gke-regional@1
inputs:
cluster: ${terraform.name.value}
deployment_timeout: 300s
ports:
- containerPort: 80
healthCheck: ""
name: hello-rest
protocol: TCP
region: us-central1
application:
import: app-hello-world-rest.yaml
environment:
import: environment-Staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
schema_version: v1.0.0
deployment:
name: loki-Staging
deploymentConfig:
artifact:
id: 051178b6-9506-45ea-b559-2f218b7d2c2f
gitCode:
type: branch
identifier: main
template:
moduleRefId: gcp:private-helm@1
inputs:
cluster: ${terraform.name.value}
deployment_timeout: 300s
helm_chart_path: helm-example/grafana-promethus/helm/loki-stack/
helm_values_path: helm-example/grafana-promethus/helm/loki-stack/values.yaml
helm_values_set_var: ""
namespace: monitor
region: us-central1
application:
import: app-loki.yaml
environment:
import: environment-Staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
schema_version: v1.0.0
deployment:
name: monitor-Staging
deploymentConfig:
artifact:
id: c0235a38-7009-4eb3-8442-4240777b7236
gitCode:
type: branch
identifier: main
template:
moduleRefId: gcp:private-helm@1
inputs:
cluster: ${terraform.name.value}
deployment_timeout: 300s
helm_chart_path: helm-example/grafana-promethus/helm/kube-prometheus-stack/
helm_values_path: helm-example/grafana-promethus/helm/kube-prometheus-stack/values.yaml
helm_values_set_var: grafana.adminPassword=$$GRAFANA_PASSWORD,grafana.service.loadBalancerIP=$$GRAFANA_EXTERNAL_IP
namespace: monitor
region: us-central1
env:
GRAFANA_EXTERNAL_IP: X.X.X.X
GRAFANA_PASSWORD: Grafana@2023
application:
import: app-monitor.yaml
environment:
import: environment-Staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
schema_version: v1.0.0
deployment:
name: nginx-Staging
deploymentConfig:
artifact:
id: b14895b8-8021-4cb2-8304-ca8498c4e6ed
containerImage:
reference: latest
template:
moduleRefId: gcp:basic-gke-regional@1
inputs:
cluster: ${terraform.name.value}
deployment_timeout: 300s
ports:
- containerPort: 80
healthCheck: ""
name: hc
protocol: TCP
region: us-central1
application:
import: app-nginx.yaml
environment:
import: environment-Staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
schema_version: v1.0.0
environment:
name: Staging
revision:
type: branch
identifier: master
repo: https://github.com/cldcvr/vanguard-demo
dir: cdn/infra/gcp/gke
driver: github
variables:
- key: cluster_ipv4_cidr
value: 10.254.192.144/28
type: tf_var
- key: create_codepipes_bot_service_account
value: "true"
type: tf_var
- key: create_workload_identity_service_accounts
value: "true"
type: tf_var
- key: environment
value: test
type: tf_var
- key: ip_range_pods
value: codepipes-ip-range-testing
type: tf_var
- key: ip_range_services
value: codepipes-svc-range-testing
type: tf_var
- key: kubernetes_version
value: 1.24.11-gke.1000
type: tf_var
- key: location
value: us-central1
type: tf_var
- key: name
value: testing
type: tf_var
- key: network
value: codepipes-net-testing
type: tf_var
- key: project
value: vanguard-test-deploy
type: tf_var
- key: project_code
value: pranay-test-dev
type: tf_var
- key: subnet_ip
value: 172.20.0.0/22
type: tf_var
- key: subnetwork
value: codepipes-sub-testing
type: tf_var
9 changes: 9 additions & 0 deletions bundles/grafana-prometheus-loki-bundle/gcp/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
schema_version: v1.0.0
project:
name: ByteWave
description: This Project demo of Grafana , Prometheus , loki setup
deployments:
- import: deployment-nginx-Staging.yaml
- import: deployment-hello-world-rest-St.yaml
- import: deployment-loki-Staging.yaml
- import: deployment-monitor-Staging.yaml
15 changes: 0 additions & 15 deletions helm-example/loki-stack/codepipes-bundle/app-helm-app.yaml

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions helm-example/loki-stack/codepipes-bundle/environment-dev.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions helm-example/loki-stack/codepipes-bundle/index.yaml

This file was deleted.

42 changes: 0 additions & 42 deletions helm-example/loki-stack/values.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions helm-example/monitoring/kube-prometheus-stack/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Python development for hack
venv
pyvenv.cfg
28 changes: 28 additions & 0 deletions helm-example/monitoring/kube-prometheus-stack/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
# helm/charts
OWNERS
hack/
ci/
kube-prometheus-*.tgz

unittests/
12 changes: 12 additions & 0 deletions helm-example/monitoring/kube-prometheus-stack/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Contributing Guidelines

## How to contribute to this chart

1. Fork this repository, develop and test your Chart.
1. Bump the chart version for every change.
1. Ensure PR title has the prefix `[kube-prometheus-stack]`
1. When making changes to rules or dashboards, see the README.md section on how to sync data from upstream repositories
1. Check the `hack/minikube` folder has scripts to set up minikube and components of this chart that will allow all components to be scraped. You can use this configuration when validating your changes.
1. Check for changes of RBAC rules.
1. Check for changes in CRD specs.
1. PR must pass the linter (`helm lint`)
12 changes: 12 additions & 0 deletions helm-example/monitoring/kube-prometheus-stack/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
dependencies:
- name: kube-state-metrics
repository: https://prometheus-community.github.io/helm-charts
version: 5.7.0
- name: prometheus-node-exporter
repository: https://prometheus-community.github.io/helm-charts
version: 4.17.5
- name: grafana
repository: https://grafana.github.io/helm-charts
version: 6.57.2
digest: sha256:a0456b0c3aae6fdff7861a5518a5a8f852da9ff45aee23fc8faa197dfccc6cf0
generated: "2023-06-13T13:18:52.344854+05:30"
Loading