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