Skip to content

Commit

Permalink
Merge pull request #2 from neticdk/add-ingress
Browse files Browse the repository at this point in the history
add option for grafana ingress resource
  • Loading branch information
netic-rkm authored Dec 7, 2023
2 parents ffbc2e9 + 8598851 commit 8531efc
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: aoi
description: A Helm chart for Netic application operations infrastructure
type: application
version: 0.1.1
version: 0.1.2
dependencies:
- name: grafana
version: 7.0.9
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# aoi

![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Helm chart for Netic application operations infrastructure

Expand Down Expand Up @@ -70,6 +70,8 @@ A Helm chart for Netic application operations infrastructure
| global.tsdb.high_availability.enabled | bool | `false` | |
| grafana.enabled | bool | `true` | |
| grafana.image.pullPolicy | string | `"Always"` | |
| grafana.ingress.enabled | bool | `false` | |
| grafana.ingress.fqdn | string | `nil` | |
| grafana.podPortName | string | `"http"` | |
| grafana.priorityClassName | string | `"secure-cloud-stack-tenant-namespace-application-critical"` | |
| grafana.resources.limits.memory | string | `"256Mi"` | |
Expand Down
28 changes: 28 additions & 0 deletions templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{{- if .Values.grafana.ingress.enabled }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
kubernetes.io/tls-acme: "true"
name: {{ include "aoi.name" . }}-grafana-ingress
namespace: {{ $.Release.Namespace }}
spec:
rules:
- host: {{ include ".Values.grafana.ingress.fqdn" . }}
http:
paths:
- backend:
service:
name: {{ include "aoi.name" . }}-grafana
port:
name: service
path: /
pathType: Prefix
tls:
- hosts:
- {{ include ".Values.grafana.ingress.fqdn" . }}
secretName: {{ include "aoi.name" . }}-grafana-ingress-tls

{{- end }}
4 changes: 4 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ grafana:
datasources:
enabled: true
label: aoi_grafana_datasource
ingress:
enabled: false
fqdn: null


victoria-metrics-single-1:
rbac:
Expand Down

0 comments on commit 8531efc

Please sign in to comment.