Skip to content

Commit c953c59

Browse files
committed
*: add helm chart publishing
Recommend helm chart over plain k8s manifests. Resolves galexrt#15 Signed-off-by: Alexander Trost <[email protected]>
1 parent 38e516d commit c953c59

File tree

4 files changed

+46
-3
lines changed

4 files changed

+46
-3
lines changed

.github/workflows/helm-publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release Charts
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
# Depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
11+
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
12+
permissions:
13+
contents: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Configure Git
22+
run: |
23+
git config user.name "$GITHUB_ACTOR"
24+
git config user.email "[email protected]"
25+
26+
- name: Install Helm
27+
uses: azure/setup-helm@v1
28+
with:
29+
version: v3.8.1
30+
31+
- name: Run chart-releaser
32+
uses: helm/[email protected]
33+
env:
34+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

charts/node-exporter-textfiles/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ version: 0.1.0
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "v20220203-125335-155"
24+
appVersion: "v20220922-124518-926"

kubernetes/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# kubernetes
22

3+
## Recommendation
4+
5+
It is recommended to use [the `node-exporter-textfiles` Helm chart](../charts/node-exporter-textfiles/) to install and update the node_exporter textfile container.
6+
7+
## Info
8+
39
This example DaemonSet runs the `smartmon.sh` and `nvme_metrics.sh` node_exporter textfile scripts.
410
The data is exported to `/var/lib/node_exporter` on the nodes.

kubernetes/daemonset.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# It is recommended to use the Helm chart see
2+
# https://github.com/galexrt/container-node_exporter-textfiles#kubernetes
3+
#
14
apiVersion: apps/v1
25
kind: DaemonSet
36
metadata:
@@ -26,7 +29,7 @@ spec:
2629
operator: "Exists"
2730
terminationGracePeriodSeconds: 5
2831
containers:
29-
- image: quay.io/galexrt/node-exporter-textfiles:v20220203-125335-155
32+
- image: quay.io/galexrt/node-exporter-textfiles:v20220922-124518-926
3033
name: smartmon
3134
env:
3235
- name: INTERVAL
@@ -49,7 +52,7 @@ spec:
4952
- mountPath: /var/lib/node_exporter
5053
name: host-textfile
5154
readOnly: false
52-
- image: quay.io/galexrt/node-exporter-textfiles:v20220203-125335-155
55+
- image: quay.io/galexrt/node-exporter-textfiles:v20220922-124518-926
5356
name: nvmemetrics
5457
env:
5558
- name: INTERVAL

0 commit comments

Comments
 (0)