Compare commits
3 Commits
1866faf883
...
deeeb10366
Author | SHA1 | Date | |
---|---|---|---|
|
deeeb10366 | ||
|
ce53a03d54 | ||
|
25dafc3c82 |
20
.pre-commit-config.yaml
Normal file
20
.pre-commit-config.yaml
Normal 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
57
README.md
Normal 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` | | `{}` |
|
||||
|
||||
|
||||
|
||||
|
42
values.yaml
42
values.yaml
@ -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,8 +79,7 @@ autoscaling:
|
||||
targetCPUUtilizationPercentage: 80
|
||||
# targetMemoryUtilizationPercentage: 80
|
||||
|
||||
# Secrets that needs to be created
|
||||
secrets: {}
|
||||
secrets: {} # Secrets that needs to be created
|
||||
# secrets:
|
||||
# <name>:
|
||||
# type: #default Opaque
|
||||
@ -95,8 +89,7 @@ secrets: {}
|
||||
# data:
|
||||
# KEY: VALUE
|
||||
|
||||
# ConfigMaps that needs to be created
|
||||
configs: {}
|
||||
configs: {} # ConfigMaps that needs to be created
|
||||
# configs:
|
||||
# <name>:
|
||||
# annotations: {}
|
||||
@ -105,7 +98,7 @@ configs: {}
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user