Compare commits

..

3 Commits

Author SHA1 Message Date
Jonas Forsberg
deeeb10366 secrets/configmaps added 2024-10-18 09:45:08 +02:00
Jonas Forsberg
ce53a03d54 moved comments to fit frigate 2024-10-18 09:30:07 +02:00
Jonas Forsberg
25dafc3c82 added pre-commit hooks 2024-10-18 09:27:50 +02:00
3 changed files with 98 additions and 29 deletions

20
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,20 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: ^README.md$
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/rapidsai/frigate/
rev: v0.4.0
hooks:
- id: frigate
args:
- --output=README.rst
- --format=rst
- --no-credits
- --no-deps

57
README.md Normal file
View File

@ -0,0 +1,57 @@
Lib
===========
Common functions for my helm charts at home
## Configuration
The following table lists the configurable parameters of the Lib chart and their default values.
| Parameter | Description | Default |
| ------------------------ | ----------------------- | -------------- |
| `namespace` | namespace to install to | `"default"` |
| `controller.enabled` | should the main workload be included or not | `true` |
| `controller.type` | valid options are deployment, statefulset, job | `"deployment"` |
| `controller.replicas` | number of replicas | `1` |
| `image.repository` | container image name | `null` |
| `image.pullPolicy` | kubernetes pull policy | `null` |
| `image.tag` | Overrides the image tag whose default is the chart appVersion. | `""` |
| `fullnameOverride` | override the name of the helm release | `""` |
| `service.main.enabled` | | `false` |
| `service.main.type` | | `"ClusterIP"` |
| `service.main.annotations` | | `{}` |
| `service.main.labels` | | `{}` |
| `service.main.ports` | | `null` |
| `ingress.enabled` | | `false` |
| `ingress.service` | what service should the ingress target | `"main"` |
| `ingress.servicePort` | | `80` |
| `ingress.className` | | `""` |
| `ingress.annotations` | | `{}` |
| `ingress.hosts` | | `[{"host": "chart-example.local", "paths": [{"path": "/", "pathType": "ImplementationSpecific"}]}]` |
| `ingress.tls` | | `[]` |
| `resources` | | `{}` |
| `autoscaling.enabled` | | `false` |
| `autoscaling.minReplicas` | | `1` |
| `autoscaling.maxReplicas` | | `5` |
| `autoscaling.targetCPUUtilizationPercentage` | | `80` |
| `secrets` | Secrets that needs to be created | `{}` |
| `configs` | ConfigMaps that needs to be created | `{}` |
| `env` | environment variables the controller should have | `{}` |
| `volumes` | | `[]` |
| `volumeMounts` | | `[]` |
| `volumeClaimTemplates` | used for statefulset https://kubernetes.io/docs/concepts/workloads/controllers/statefulset | `[]` |
| `serviceAccount.create` | | `true` |
| `serviceAccount.automount` | | `true` |
| `serviceAccount.annotations` | | `{}` |
| `serviceAccount.name` | | `""` |
| `livenessProbe` | | `{}` |
| `readinessProbe` | | `{}` |
| `nodeSelector` | | `{}` |
| `tolerations` | | `[]` |
| `affinity` | | `{}` |

View File

@ -1,24 +1,20 @@
---
namespace: default
controller:
# -- enable the controller
enabled: true
# type of controller
# valid options are deployment, statefulset, job
type: deployment
replicas: 1
namespace: default # namespace to install to
controller: # main workload
enabled: true # should the main workload be included or not
type: deployment # valid options are deployment, statefulset, job
replicas: 1 # number of replicas
image:
repository:
pullPolicy:
# Overrides the image tag whose default is the chart appVersion.
tag: ""
repository: # container image name
pullPolicy: # kubernetes pull policy
tag: "" # Overrides the image tag whose default is the chart appVersion.
fullnameOverride: ""
fullnameOverride: "" # override the name of the helm release
service:
service: # services that should be created
main:
enabled: true
enabled: false
type: ClusterIP
annotations: {}
labels: {}
@ -46,7 +42,7 @@ service:
ingress:
enabled: false
service: main
service: main # what service should the ingress target
#Service to target
servicePort: 80
className: ""
@ -64,8 +60,7 @@ ingress:
# hosts:
# - chart-example.local
resources:
{}
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
@ -84,28 +79,26 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
# Secrets that needs to be created
secrets: {}
secrets: {} # Secrets that needs to be created
# secrets:
# <name>:
# <name>:
# type: #default Opaque
# annotations: {}
# labels: {}
# env: false #should template load each key in the seacret as
# env: false #should template load each key in the seacret as
# data:
# KEY: VALUE
# ConfigMaps that needs to be created
configs: {}
configs: {} # ConfigMaps that needs to be created
# configs:
# <name>:
# <name>:
# annotations: {}
# labels: {}
# env: false #should template load each key in the seacret as
# env: false #should template load each key in the seacret as
# data:
# KEY: VALUE
env: {}
env: {} # environment variables the controller should have
# Additional volumes on the output Deployment definition.
volumes: []
@ -120,8 +113,7 @@ volumeMounts: []
# mountPath: "/etc/foo"
# readOnly: true
# used for statefulset https://kubernetes.io/docs/concepts/workloads/controllers/statefulset
volumeClaimTemplates: []
volumeClaimTemplates: [] # used for statefulset https://kubernetes.io/docs/concepts/workloads/controllers/statefulset
#volumeClaimTemplates:
# - name: www
# mountPath: /var/www/html