chore(incubator): make things work with new common part 3 (#15994)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Kjeld Schouten
2023-12-15 22:41:48 +01:00
committed by GitHub
parent d42d189d19
commit 11272a4456
936 changed files with 615 additions and 1092 deletions
+30
View File
@@ -0,0 +1,30 @@
# 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
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS
# helm-docs templates
*.gotmpl
# docs folder
/docs
# icon
icon.png
View File
+40
View File
@@ -0,0 +1,40 @@
kubeVersion: ">=1.24.0-0"
apiVersion: v2
name: checkmk
version: 1.0.2
appVersion: 2.2.0
description:
Checkmk is a leading tool for Infrastructure and Application Monitoring.
Simple configuration, scalable, flexible. It provides powerful monitoring of networks,
servers, clouds, containers and applications.
home: https://truecharts.org/charts/incubator/checkmk
icon: https://truecharts.org/img/hotlink-ok/chart-icons/checkmk.png
deprecated: false
sources:
- https://hub.docker.com/r/checkmk/check-mk-raw
- https://github.com/tribe29/checkmk
- https://github.com/truecharts/charts/tree/master/charts/incubator/checkmk
maintainers:
- name: TrueCharts
email: info@truecharts.org
url: https://truecharts.org
keywords:
- checkmk
- monitoring
dependencies:
- name: common
version: 16.2.6
repository: https://library-charts.truecharts.org
condition: ""
alias: ""
tags: []
import-values: []
annotations:
max_scale_version: 23.10.1
min_scale_version: 22.12.4
truecharts.org/SCALE-support: "true"
truecharts.org/category: monitoring
truecharts.org/max_helm_version: "3.13"
truecharts.org/min_helm_version: "3.12"
truecharts.org/train: incubator
type: application
+27
View File
@@ -0,0 +1,27 @@
# README
## General Info
TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE.
However only installations using the TrueNAS SCALE Apps system are supported.
For more information about this App, please check the docs on the TrueCharts [website](https://truecharts.org/charts/incubator/checkmk)
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)**
## Support
- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/manual/SCALE/guides/scale-intro).
- See the [Website](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/charts/issues/new/choose)
---
## Sponsor TrueCharts
TrueCharts can only exist due to the incredible effort of our staff.
Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can!
*All Rights Reserved - The TrueCharts Project*
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

+175
View File
@@ -0,0 +1,175 @@
# Include{groups}
portals:
open:
# Include{portalLink}
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}
# Include{podOptions}
- variable: cmk
group: App Configuration
label: Check-mk Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: password
label: Initial Password
description: Sets the initial password for cmkadmin user
schema:
type: string
required: true
private: true
default: ""
- variable: site_id
label: Site ID
description: Sets the siteID
schema:
type: string
required: true
default: cmk
- variable: livestatus_tcp
label: Livestatus TCP
description: Enables the livestatus TCP
schema:
type: boolean
default: false
- variable: mail_relay_host
label: Mail Relay Host
description: Sets the Mail Relay Host
schema:
type: string
default: ""
# Include{serviceRoot}
- variable: main
label: Main Service
description: The Primary service on which the healthcheck runs, often the webUI
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
- variable: main
label: Main Service Port Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: Port
description: This port exposes the container port on the service
schema:
type: int
default: 15000
required: true
- variable: receiver
label: Receiver Service
description: The Receiver service
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
- variable: receiver
label: Receiver Service Port Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: Port
description: This port exposes the container port on the service
schema:
type: int
default: 18000
required: true
- variable: livestatustcp
label: Livestatus TCP Service
description: The Livestatus TCP service
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
- variable: livestatustcp
label: Livestatus TCP Service Port Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: Port
description: This port exposes the container port on the service
schema:
type: int
default: 6557
required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
- variable: config
label: App Config Storage
description: Stores the Application Configuration.
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceList}
# Include{ingressRoot}
- variable: main
label: Main Ingress
schema:
additional_attrs: true
type: dict
attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressAdvanced}
# Include{ingressList}
# Include{securityContextRoot}
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
schema:
type: int
default: 0
- variable: runAsGroup
label: "runAsGroup"
description: "The groupID of the user running the application"
schema:
type: int
default: 0
# Include{securityContextContainer}
# Include{securityContextAdvanced}
# Include{securityContextPod}
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
# Include{resources}
# Include{advanced}
# Include{addons}
# Include{codeserver}
# Include{netshoot}
# Include{vpn}
# Include{documentation}
+13
View File
@@ -0,0 +1,13 @@
{{/* Define the secret */}}
{{- define "checkmk.secret" -}}
{{- $secretName := printf "%s-secret" (include "tc.v1.common.names.fullname" .) }}
enabled: true
data:
CMK_PASSWORD: {{ .Values.cmk.password | quote }}
CMK_SITE_ID: {{ .Values.cmk.site_id | quote }}
CMK_LIVESTATUS_TCP: {{ ternary "on" "off" .Values.cmk.livestatus_tcp | quote }}
{{- with .Values.cmk.mail_relay_host }}
MAIL_RELAY_HOST: {{ . | quote }}
{{- end }}
{{- end }}
+8
View File
@@ -0,0 +1,8 @@
{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . }}
{{/* Render secret */}}
{{- include "checkmk.secret" . }}
{{/* Render the templates */}}
{{ include "tc.v1.common.loader.apply" . }}
+79
View File
@@ -0,0 +1,79 @@
cmk:
livestatus_tcp: true
mail_relay_host: ""
password: secret
site_id: cmk
image:
pullPolicy: IfNotPresent
repository: checkmk/check-mk-raw
tag: 2.2.0-latest@sha256:69baf5cd496fdd623ad36ccc466399aaab2de492f54787f4cc94e3cdf14ea378
persistence:
cmk-cron:
enabled: true
mountPath: /var/spool/cron/crontabs
type: emptyDir
cmk-temp:
enabled: true
mountPath: /omd/sites/cmk/tmp
type: emptyDir
config:
enabled: true
mountPath: /omd/sites
portal:
open:
enabled: true
securityContext:
container:
readOnlyRootFilesystem: false
runAsGroup: 0
runAsUser: 0
service:
livestatustcp:
enabled: true
ports:
livestatustcp:
enabled: true
port: 6557
targetPort: 6557
main:
ports:
main:
port: 15000
protocol: http
targetPort: 5000
receiver:
enabled: true
ports:
receiver:
enabled: true
port: 18000
protocol: http
targetPort: 8000
workload:
main:
podSpec:
containers:
main:
envFrom:
- secretRef:
name: 'secret'
probes:
liveness:
spec:
exec:
command:
- /bin/sh
- -c
- omd status
readiness:
exec:
command:
- /bin/sh
- -c
- omd status
startup:
exec:
command:
- /bin/sh
- -c
- omd status