forked from RemoteSync/librnms-helm-charts
Compare commits
14 Commits
librenms-3
...
testing
Author | SHA1 | Date | |
---|---|---|---|
|
c608f26117 | ||
|
251e29fafe | ||
|
0784ed39f2 | ||
|
50ec0b04b6 | ||
|
5e2dc34ba4 | ||
|
92baa22db2 | ||
|
5d91501038 | ||
|
c35cbe0e41 | ||
|
be368a6bba | ||
|
79372bdb2f | ||
|
a03ca0a216 | ||
|
1cc13d4997 | ||
|
af808336bf | ||
|
a56570e4fe |
51
.github/workflows/chart-testing.yml
vendored
Normal file
51
.github/workflows/chart-testing.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
name: Lint and Test Charts
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set up Helm
|
||||||
|
uses: azure/setup-helm@v4.2.0
|
||||||
|
with:
|
||||||
|
version: v3.14.4
|
||||||
|
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
|
- name: Set up chart-testing
|
||||||
|
uses: helm/chart-testing-action@v2.6.1
|
||||||
|
|
||||||
|
- name: Add repositories
|
||||||
|
run: |
|
||||||
|
for dir in $(ls -d charts/*/); do
|
||||||
|
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: Run chart-testing (list-changed)
|
||||||
|
id: list-changed
|
||||||
|
run: |
|
||||||
|
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
|
||||||
|
if [[ -n "$changed" ]]; then
|
||||||
|
echo "changed=true" >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Run chart-testing (lint)
|
||||||
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
|
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
|
||||||
|
|
||||||
|
- name: Create kind cluster
|
||||||
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
|
uses: helm/kind-action@v1.10.0
|
||||||
|
|
||||||
|
- name: Run chart-testing (install)
|
||||||
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
|
run: ct install --target-branch ${{ github.event.repository.default_branch }} --skip-clean-up
|
34
.github/workflows/set-appVersion.yml
vendored
Normal file
34
.github/workflows/set-appVersion.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
name: Updste LibreNMS appVersion
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- renovate/*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
set-appverions:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||||
|
# added or changed files to the repository.
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
|
|
||||||
|
- name: Find image version
|
||||||
|
run: |
|
||||||
|
wget https://github.com/mikefarah/yq/releases/download/v4.44.2/yq_linux_amd64.tar.gz -O /tmp/yq.tgz
|
||||||
|
tar -xvf /tmp/yq.tgz --directory /tmp
|
||||||
|
chmod +x /tmp/yq_linux_amd64
|
||||||
|
|
||||||
|
export VERSION=$(/tmp/yq_linux_amd64 '.librenms.image.tag' charts/librenms/values.yaml)
|
||||||
|
echo "DETECTED VERSION $VERSION"
|
||||||
|
/tmp/yq_linux_amd64 -e -i '.appVersion = env(VERSION)' charts/librenms/Chart.yaml
|
||||||
|
|
||||||
|
|
||||||
|
# Commit all changed files back to the repository
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
31
README.md
31
README.md
@@ -0,0 +1,31 @@
|
|||||||
|
# LibreNMS Helm Charts
|
||||||
|
|
||||||
|
Welcome to the repository for the Helm charts of the LibreNMS community. This repository holds all the Helm charts you need to deploy LibreNMS and related components using Kubernetes.
|
||||||
|
|
||||||
|
## Main Chart
|
||||||
|
|
||||||
|
The primary chart in this repository is located at `charts/librenms`. This chart allows you to deploy LibreNMS, an open-source network monitoring system, on your Kubernetes cluster.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
Each chart within this repository comes with its own set of documentation. To get started with a specific chart, please refer to the README.md file located in the respective chart's directory.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
To install a chart from this repository, you can use the following Helm commands:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
helm repo add librenms https://www.librenms.org/helm-charts
|
||||||
|
helm repo update
|
||||||
|
helm install my-release librenms/<chart-name>
|
||||||
|
```
|
||||||
|
|
||||||
|
Replace `<chart-name>` with the name of the chart you wish to install (e.g., `librenms`).
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
We welcome contributions from the community. If you have improvements or fixes, please submit a pull request. Make sure to follow our contribution guidelines.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Thank you for using LibreNMS Helm charts! For any issues or questions, please refer to the documentation of the respective chart or open an issue in this repository.
|
@@ -1,9 +1,9 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: redis
|
- name: redis
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 19.5.5
|
version: 19.6.1
|
||||||
- name: mysql
|
- name: mysql
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 10.3.0
|
version: 10.3.0
|
||||||
digest: sha256:e3cdff9ae055655aacaa8e64187b42cc1834bd5ddbbc6f9dbb01fa214586cf68
|
digest: sha256:f1e63eec3d96520ef7cd365ece9a281d57e48f811fd9e19d47baefa37fceee76
|
||||||
generated: "2024-06-20T07:46:30.599412737Z"
|
generated: "2024-07-09T11:51:38.284682+02:00"
|
||||||
|
@@ -1,18 +1,18 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: librenms
|
name: librenms
|
||||||
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring system.
|
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring system.
|
||||||
|
|
||||||
type: application
|
type: application
|
||||||
|
version: 3.10.1
|
||||||
version: 3.9.0
|
|
||||||
appVersion: "24.5.0"
|
appVersion: "24.5.0"
|
||||||
|
maintainers:
|
||||||
|
- name: TheChef23
|
||||||
|
url: https://github.com/TheChef23
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: redis
|
- name: redis
|
||||||
version: "~19.5.0"
|
version: "~19.6.0"
|
||||||
repository: "https://charts.bitnami.com/bitnami"
|
repository: "https://charts.bitnami.com/bitnami"
|
||||||
when: redis.enabled == true
|
condition: redis.enabled
|
||||||
- name: mysql
|
- name: mysql
|
||||||
version: "~10.3.0"
|
version: "~10.3.0"
|
||||||
repository: "https://charts.bitnami.com/bitnami"
|
repository: "https://charts.bitnami.com/bitnami"
|
||||||
when: mysql.enabled == true
|
condition: mysql.enabled
|
||||||
|
2
charts/librenms/ci/test-values.yaml
Normal file
2
charts/librenms/ci/test-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
librenms:
|
||||||
|
appkey: base64:RTMmh+i10E2RMcDxookMu47BTzJQy87hOU+k/zcuPnA=
|
@@ -9,7 +9,7 @@ librenms:
|
|||||||
# Laravel appkey used by LibreNMS, a default is set for useability it is
|
# Laravel appkey used by LibreNMS, a default is set for useability it is
|
||||||
# recommended to replace this with your own key
|
# recommended to replace this with your own key
|
||||||
# THIS A REQUIRED SETTINGS
|
# THIS A REQUIRED SETTINGS
|
||||||
appkey:
|
appkey:
|
||||||
|
|
||||||
# Timezone used by librenms for communication with RRD cached
|
# Timezone used by librenms for communication with RRD cached
|
||||||
timezone: UTC
|
timezone: UTC
|
||||||
@@ -20,9 +20,7 @@ librenms:
|
|||||||
configuration: |-
|
configuration: |-
|
||||||
$config['distributed_poller_group'] = '0';
|
$config['distributed_poller_group'] = '0';
|
||||||
$config['distributed_poller'] = true;
|
$config['distributed_poller'] = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Frontend container configurations options
|
# Frontend container configurations options
|
||||||
frontend:
|
frontend:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@@ -47,9 +45,9 @@ librenms:
|
|||||||
# memory: 200M
|
# memory: 200M
|
||||||
|
|
||||||
# SNMP network discovery scanner cron job. This job is optional and only use
|
# SNMP network discovery scanner cron job. This job is optional and only use
|
||||||
# when having snmp network discovery enabled. For this to work either set the
|
# when having snmp network discovery enabled. For this to work either set the
|
||||||
# 'nets' confifuration in the custom config on in the admin interface
|
# 'nets' confifuration in the custom config on in the admin interface
|
||||||
# See the following link for more information:
|
# See the following link for more information:
|
||||||
# https://docs.librenms.org/Extensions/Auto-Discovery/
|
# https://docs.librenms.org/Extensions/Auto-Discovery/
|
||||||
snmp_scanner:
|
snmp_scanner:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -65,7 +63,7 @@ librenms:
|
|||||||
extraEnvs: {}
|
extraEnvs: {}
|
||||||
|
|
||||||
# RRD cached is the tool that allows for distributed polling and is mandatory
|
# RRD cached is the tool that allows for distributed polling and is mandatory
|
||||||
# in this LibreNMS helm chart. See the rrdcached documentation for more
|
# in this LibreNMS helm chart. See the rrdcached documentation for more
|
||||||
# information: https://oss.oetiker.ch/rrdtool/doc/rrdcached.en.html
|
# information: https://oss.oetiker.ch/rrdtool/doc/rrdcached.en.html
|
||||||
rrdcached:
|
rrdcached:
|
||||||
image:
|
image:
|
||||||
@@ -97,7 +95,7 @@ librenms:
|
|||||||
# Extra environment variable for RRDCACHED container
|
# Extra environment variable for RRDCACHED container
|
||||||
extraEnvs: {}
|
extraEnvs: {}
|
||||||
|
|
||||||
# Configuration for MySQL dependency chart by Bitnami. See their chart for
|
# Configuration for MySQL dependency chart by Bitnami. See their chart for
|
||||||
# more information: https://github.com/bitnami/charts/tree/master/bitnami/mysql
|
# more information: https://github.com/bitnami/charts/tree/master/bitnami/mysql
|
||||||
mysql:
|
mysql:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -105,7 +103,7 @@ mysql:
|
|||||||
username: librenms
|
username: librenms
|
||||||
database: librenms
|
database: librenms
|
||||||
|
|
||||||
# Configuration for redis dependency chart by Bitnami. See their chart for
|
# Configuration for redis dependency chart by Bitnami. See their chart for
|
||||||
# more information: https://github.com/bitnami/charts/tree/master/bitnami/redis
|
# more information: https://github.com/bitnami/charts/tree/master/bitnami/redis
|
||||||
redis:
|
redis:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -119,4 +117,4 @@ redis:
|
|||||||
master:
|
master:
|
||||||
disableCommands: []
|
disableCommands: []
|
||||||
|
|
||||||
architecture: standalone
|
architecture: standalone
|
||||||
|
6
renovate.json
Normal file
6
renovate.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:recommended"
|
||||||
|
]
|
||||||
|
}
|
Reference in New Issue
Block a user