Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/sebastian/prod-2981-set-up-catal…
Browse files Browse the repository at this point in the history
…og-pipeline' into sebastian/prod-2981-set-up-catalog-pipeline
  • Loading branch information
maciaszczykm committed Dec 13, 2024
2 parents b55bef8 + ffc057d commit dcc32fd
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 1 deletion.
2 changes: 2 additions & 0 deletions catalogs/devops/grafana/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Plural Grafana

23 changes: 23 additions & 0 deletions catalogs/devops/grafana/grafana.yaml.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: plural
ingressClassName: nginx

hosts:
- {{ context.hostname }}

tls:
- hosts:
- {{ context.hostname }}
secretName: monitoring-tls

persistence:
enabled: true

plugins:
- https://github.com/VictoriaMetrics/victoriametrics-datasource/releases/download/v0.8.2/victoriametrics-datasource-v0.8.2.zip;victoriametrics-datasource

grafana.ini:
plugins:
allow_loading_unsigned_plugins: victoriametrics-datasource
26 changes: 26 additions & 0 deletions catalogs/devops/grafana/servicedeployment.yaml.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: deployments.plural.sh/v1alpha1
kind: ServiceDeployment
metadata:
name: grafana-{{ context.cluster }}
namespace: apps
spec:
namespace: grafana
git:
folder: helm/grafana/{{ context.cluster }}
ref: main
repositoryRef:
kind: GitRepository
name: infra
namespace: infra
helm:
version: "8.6.x"
chart: grafana
url: https://grafana.github.io/helm-charts
valuesFiles:
- grafana.yaml.liquid
configuration:
cluster: {{ context.cluster }}
clusterRef:
kind: Cluster
name: mgmt
namespace: infra
14 changes: 13 additions & 1 deletion setup/catalogs/catalogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,16 @@ spec:
icon: https://docs.plural.sh/favicon-128.png
author: Plural
description: |
Sets up OSS security infrastructure using Plural
Sets up OSS security infrastructure using Plural
---
apiVersion: deployments.plural.sh/v1alpha1
kind: Catalog
metadata:
name: devops
spec:
name: devops
category: devops
icon: https://docs.plural.sh/favicon-128.png
author: Plural
description: |
Sets up OSS devops infrastructure using Plural
40 changes: 40 additions & 0 deletions setup/catalogs/devops/grafana.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: deployments.plural.sh/v1alpha1
kind: PrAutomation
metadata:
name: grafana
spec:
name: grafana
icon: https://cdn.icon-icons.com/icons2/2699/PNG/512/grafana_logo_icon_171048.png
documentation: |
Sets up Grafana Open Observability Platform.
creates:
git:
ref: sebastian/prod-2981-set-up-catalog-pipeline # TODO set to main
folder: catalogs/devops/grafana
templates:
- source: README.md
destination: documentation/grafana/README.md
external: true
- source: grafana.yaml.liquid
destination: "helm/grafana/{{ context.cluster }}/grafana.yaml.liquid"
external: true
- source: servicedeployment.yaml.liquid
destination: "bootstrap/apps/grafana/{{ context.cluster }}/servicedeployment.yaml"
external: true
repositoryRef:
name: scaffolds
catalogRef:
name: devops
scmConnectionRef:
name: plural # you'll need to add this ScmConnection manually before this is functional
title: "Grafana setup ({{ context.cluster }})"
message: |
Sets up Grafana on {{ context.cluster }} cluster.
identifier: pluralsh/plrl-dev-aws # FIXME
configuration:
- name: cluster
type: STRING
documentation: the cluster you want to deploy to
- name: hostname
type: STRING
documentation: the hostname of the grafana instance

0 comments on commit dcc32fd

Please sign in to comment.