flux/GitHub repository. Special notice to the 'ingress' section. "ingress.class: traefik" ((1.1) values.yaml) should not be correct. For anything other than NGINX, should be using the 'spec' section. Not sure ... Cluster is using taints.
kubectl get nodes test2 -o json | jq ".spec.taints"
[
{
"effect": "NoSchedule",
"key": "key1",
"value": "gray"
}
]
Directory structure and (selected) files.
red
├── README.md
├── apps
│ ├── base
│ │ └── netdata
│ │ ├── kustomization.yaml (2) kustomization.yaml
│ │ ├── namespace.yaml (2.1) namespace.yaml
│ │ ├── release.yaml (2.3) release.yaml
│ │ └── repository.yaml (2.2) repository.yaml
│ ├── node
│ ├── production
│ ├── staging
│ ├── test
│ │ ├── netdata
│ │ │ ├── kustomization.yaml (1) kustomization.yaml
│ │ │ └── values.yaml (1.1) values.yaml
│ └── tosyv
├── clusters
│ ├── node
│ ├── production
│ ├── staging
│ ├── test
│ │ ├── flux-system
│ │ └── netdata.yaml (0) netdata.yaml
│ └── tosyv
├── default-values
└── notes
(0) netdata.yaml
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: netdata
namespace: flux-system
spec:
interval: 1m0s
sourceRef:
kind: GitRepository
name: flux-system
path: ./apps/test/netdata
prune: true
wait: true
timeout: 10m0s
(1) kustomization.yaml
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: test-netdata
namespace: netdata
resources:
- ../../base/netdata
patches:
- path: values.yaml
target:
kind: HelmRelease
(1.1) values.yaml
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: netdata-values
namespace: netdata
spec:
test:
enable: false
values:
# 7
image:
tag: "latest"
# 57
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: traefik
hosts:
- netdata.test.local.lan
path: /
pathType: Prefix
# 83
restarter:
enabled: true
# 108
parent:
# # 136
tolerations:
- key: "key1"
operator: "Equal"
value: "gray"
effect: "NoSchedule"
# 228
claiming:
enabled: true
token: [netdata token]
rooms: [netdata room]
# 238
child:
# 271
tolerations:
- key: "key1"
operator: "Equal"
value: "gray"
effect: "NoSchedule"
# 362
claiming:
enabled: true
token: [netdata token]
rooms: [netdata room]
netdata helm chart default values:
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
path: /
pathType: Prefix
hosts:
- netdata.k8s.local
## whole spec is going to be included into ingress spec.
## if you intend to use ingressClassName declaration, remove ingress.class from annotations
# spec:
# ingressClassName: nginx
# tls:
# - secretName: netdata-tls
# hosts:
# - netdata.k8s.local
(2) kustomization.yaml
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: netdata-base
namespace: netdata
resources:
- namespace.yaml
- repository.yaml
- release.yaml
(2.1) namespace.yaml
---
apiVersion: v1
kind: Namespace
metadata:
name: netdata
labels:
debug: netdata-base-ns
(2.2) repository.yaml
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: netdata-repository
namespace: netdata
spec:
interval: 24h
url: https://netdata.github.io/helmchart/
(2.3) release.yaml
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: netdata
namespace: netdata
spec:
interval: 15m0s
releaseName: netdata
targetNamespace: netdata
chart:
spec:
chart: netdata
version: 3.7.73
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: netdata-repository
In shadows I search,
Elusive secrets evade,
Light unveils the truth.