Skip to content
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

Observability - Helm chart releases #63

Merged
merged 39 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9d188b5
Observability - new Otel and Grafana helm #61
katriendg Sep 6, 2023
c4da431
Dashboard update
katriendg Sep 6, 2023
2f2641d
Observability Helm charts (#7)
katriendg Sep 6, 2023
b30a2bd
GH worklow updates
katriendg Sep 6, 2023
3c66f4e
Merge from main
katriendg Sep 6, 2023
5742401
Observability - workflow trigger (#8)
katriendg Sep 6, 2023
bcd4227
Merge branch 'main' into observabilityhelm
katriendg Sep 6, 2023
dfed7a7
Chart version updates
katriendg Sep 6, 2023
03a418b
Observability chart versions (#9)
katriendg Sep 6, 2023
0ccb98d
Merge branch 'main' into observabilityhelm
katriendg Sep 6, 2023
505c290
Chart dependencies
katriendg Sep 6, 2023
570d254
Observability chart dependencies (#10)
katriendg Sep 6, 2023
2ac294d
Merge branch 'main' into observabilityhelm
katriendg Sep 6, 2023
58a66bd
Updated existing charts for observability
katriendg Sep 6, 2023
fde36f1
Updated release workflow
katriendg Sep 6, 2023
8cb4205
Observability helm charts updates (#11)
katriendg Sep 6, 2023
c6833f6
Merge branch 'main' into observabilityhelm
katriendg Sep 6, 2023
1d03196
GH worklow simplify helm
katriendg Sep 6, 2023
2a25357
Observability simplify GH workflow (#12)
katriendg Sep 7, 2023
f999654
Merge branch 'main' into observabilityhelm
katriendg Sep 7, 2023
d343abb
Typo in workflow
katriendg Sep 7, 2023
0c8aed8
Helm chart minor updates
katriendg Sep 7, 2023
4a0e2e6
Observability - chart minor updates (#13)
katriendg Sep 7, 2023
fbf5f5b
Merge branch 'main' into observabilityhelm
katriendg Sep 7, 2023
a6368c4
Helm chart releaser workflow updates
katriendg Sep 7, 2023
c813a78
Helm chart releaser workflow updates
katriendg Sep 7, 2023
2904d27
Observability: helm releaser testing (#14)
katriendg Sep 7, 2023
fa377ca
Helm chart releaser workflow separate
katriendg Sep 7, 2023
80abf6a
Helm chart releaser workflow separate
katriendg Sep 7, 2023
564573a
Observability releases (#15)
katriendg Sep 7, 2023
f3af802
Merge branch 'main' into observabilityhelm
katriendg Sep 7, 2023
1511b35
Helm chart releaser CR
katriendg Sep 7, 2023
e576e9b
Observability helm issues (#16)
katriendg Sep 7, 2023
4e7ef7c
Merge branch 'main' into observabilityhelm
katriendg Sep 7, 2023
5814ca7
Helm chart releaser CR
katriendg Sep 7, 2023
8fc01b9
Release workflow naming
katriendg Sep 7, 2023
a48f178
Fix a wrongly copied folder
katriendg Sep 20, 2023
49c2327
Helm chart versions fix
katriendg Sep 21, 2023
a248663
Small changes based on PR review comments
katriendg Sep 28, 2023
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
@@ -1,4 +1,4 @@
name: Main - Release Helm Chart DNSMasq
name: Main - Release Helm Charts - DNSMasqAKS
on:
push:
branches:
Expand All @@ -21,12 +21,15 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Get the version
id: vars
run: echo ::set-output name=tag::$(echo main-${GITHUB_SHA})

- name: Echo Docker images tag
run: echo ${{steps.vars.outputs.tag}}
- name: Setup Helm
uses: azure/setup-helm@v3.5
with:
version: v3.9.2

- name: Add Helm chart dependencies
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/Release-helm-edgeobservability.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Main - Release Helm Charts - Observability
on:
push:
branches:
- main
paths:
# Only run this when chart file is updated.
- 'deployment/helm/edgeobservability/Chart.yaml'

jobs:
Release-Artifacts:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Setup Helm
uses: azure/setup-helm@v3.5
with:
version: v3.9.2

- name: Add Helm chart dependencies
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_dir: deployment/helm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main - Release Helm Chart Envoy Proxy
name: Main - Release Helm Charts - Envoy
on:
push:
branches:
Expand All @@ -21,12 +21,15 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Get the version
id: vars
run: echo ::set-output name=tag::$(echo main-${GITHUB_SHA})

- name: Echo Docker images tag
run: echo ${{steps.vars.outputs.tag}}
- name: Setup Helm
uses: azure/setup-helm@v3.5
with:
version: v3.9.2

- name: Add Helm chart dependencies
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main - Release Helm Chart IoT Edge Accelerator L2
name: Main - Release Helm Charts - L2
on:
push:
branches:
Expand All @@ -21,12 +21,15 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Get the version
id: vars
run: echo ::set-output name=tag::$(echo main-${GITHUB_SHA})

- name: Echo Docker images tag
run: echo ${{steps.vars.outputs.tag}}
- name: Setup Helm
uses: azure/setup-helm@v3.5
with:
version: v3.9.2

- name: Add Helm chart dependencies
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main - Release Helm Chart IoT Edge Accelerator L4
name: Main - Release Helm Charts - L4
on:
push:
branches:
Expand All @@ -21,12 +21,15 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Get the version
id: vars
run: echo ::set-output name=tag::$(echo main-${GITHUB_SHA})

- name: Echo Docker images tag
run: echo ${{steps.vars.outputs.tag}}
- name: Setup Helm
uses: azure/setup-helm@v3.5
with:
version: v3.9.2

- name: Add Helm chart dependencies
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main - Release Helm Chart Mosquitto Broker
name: Main - Release Helm Charts - Mosquitto
on:
push:
branches:
Expand All @@ -21,12 +21,15 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Get the version
id: vars
run: echo ::set-output name=tag::$(echo main-${GITHUB_SHA})

- name: Echo Docker images tag
run: echo ${{steps.vars.outputs.tag}}
- name: Setup Helm
uses: azure/setup-helm@v3.5
with:
version: v3.9.2

- name: Add Helm chart dependencies
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/Release-helm-otelcollection.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Main - Release Helm Charts - OtelCollection
on:
push:
branches:
- main
paths:
# Only run this when chart file is updated.
- 'deployment/helm/otelcollection/Chart.yaml'

jobs:
Release-Artifacts:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Setup Helm
uses: azure/setup-helm@v3.5
with:
version: v3.9.2

- name: Add Helm chart dependencies
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_dir: deployment/helm
2 changes: 1 addition & 1 deletion deployment/helm/dnsmasqaks/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.0
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/dnsmasqaks/templates/dnsmasq/configmaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ data:
{{- range $key, $val := .Values.hostsDomains }}
{{ $dnsServer }} {{ $val }}
{{- end }}
{{- range $key, $val := .Values.customDomains }}
{{ $dnsServer }} {{ $val }}
{{- end }}

3 changes: 3 additions & 0 deletions deployment/helm/dnsmasqaks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ wildcardDomains:
docker_io: "docker.io" # temporary for mosquitto image # TODO remove once usage of connected container registry
azurecr_io: "azurecr.io" # temporary for dev images of this project # TODO remove once usage of connected container registry
githubusercontent_com: "githubusercontent.com" # for flux repo in GitHub
quay_io: "quay.io" # for images for cert-manager and otel operator
pkg_dev: "pkg.dev" # for images from registry.k8s.io - kube-state-metrics # TODO remove once usage of connected container registry
amazonaws_com: "amazonaws.com" # for images from registry.k8s.io - kube-state-metrics # TODO remove once usage of connected container registry

# Provide additional domains that you want to proxy through, pass the whole collection through Values
# customDomains:
Expand Down
1 change: 1 addition & 0 deletions deployment/helm/edgeobservability/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/charts
25 changes: 25 additions & 0 deletions deployment/helm/edgeobservability/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
.tgz
index.yaml
12 changes: 12 additions & 0 deletions deployment/helm/edgeobservability/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
dependencies:
- name: tempo
repository: https://grafana.github.io/helm-charts
version: 0.16.2
- name: loki
repository: https://grafana.github.io/helm-charts
version: 2.16.0
- name: prometheus
repository: https://prometheus-community.github.io/helm-charts
version: 24.3.0
digest: sha256:8dfb27c12c2c334b6ad22253880a1ecdd2f53b93c1afd5ce09b17adb1af2a49e
generated: "2023-09-06T15:50:33.6038669+02:00"
21 changes: 21 additions & 0 deletions deployment/helm/edgeobservability/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v2
name: edgeobservability
description: A Helm chart with observability components for Edge deployments.
version: 0.1.0

dependencies:
- name: tempo
repository: https://grafana.github.io/helm-charts
version: 0.16.2
condition: tempo.enabled

- name: loki
repository: https://grafana.github.io/helm-charts
version: 2.16.0
condition: loki.enabled

- name: prometheus
repository: https://prometheus-community.github.io/helm-charts
version: 24.3.0
condition: prometheus.enabled

42 changes: 42 additions & 0 deletions deployment/helm/edgeobservability/templates/grafana/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "grafana.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}


{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "grafana.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "grafana.labels" -}}
helm.sh/chart: {{ include "grafana.chart" . }}
{{ include "grafana.selectorLabels" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "grafana.selectorLabels" -}}
app.kubernetes.io/name: {{ include "grafana.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "grafana.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default "grafana" .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: grafana-config-dashboards
labels:
{{- include "grafana.labels" . | nindent 4 }}
data:
provider.yaml: |
apiVersion: 1
providers:
- allowUiUpdates: false
disableDeletion: false
folder: ""
name: sidecarProvider
options:
foldersFromFilesStructure: false
path: /tmp/dashboards
orgId: 1
type: file
updateIntervalSeconds: 30
Loading