Skip to content

Commit

Permalink
updated readme formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Aug 29, 2024
1 parent 046d071 commit 6b4b57c
Show file tree
Hide file tree
Showing 32 changed files with 14,416 additions and 1,630 deletions.
1,055 changes: 952 additions & 103 deletions charts/victoria-logs-single/README.md

Large diffs are not rendered by default.

21 changes: 20 additions & 1 deletion charts/victoria-logs-single/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,23 @@ The following tables lists the configurable parameters of the chart and their de

Change the values according to the need of the environment in ``victoria-logs-single/values.yaml`` file.

{{ template "chart.valuesTable" . }}
{{ define "chart.valueDefaultColumnRender" }}
{{- $defaultValue := (default .Default .AutoDefault) -}}
{{- $notationType := .NotationType }}
{{- if and (hasPrefix "`" $defaultValue) (hasSuffix "`" $defaultValue) -}}
{{- $defaultValue = (toYaml (fromJson (trimAll "`" (default .Default .AutoDefault) ) ) ) -}}
{{- if has .Type (list "list" "object" "map") -}}
{{- $notationType = "plaintext" }}
{{- end -}}
{{- end -}}
<pre lang="{{ $notationType }}">
{{- if (eq $notationType "tpl" ) }}
{{ .Key }}: |
{{- $defaultValue | nindent 2 }}
{{- else }}
{{ $defaultValue }}
{{- end }}
</pre>
{{ end }}

{{ template "chart.valuesTableHtml" . }}
23 changes: 13 additions & 10 deletions charts/victoria-logs-single/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ global:
printNotes: true

podDisruptionBudget:
# -- See `kubectl explain poddisruptionbudget.spec` for more. Ref: [https://kubernetes.io/docs/tasks/run-application/configure-pdb/](https://kubernetes.io/docs/tasks/run-application/configure-pdb/)
# -- See `kubectl explain poddisruptionbudget.spec` for more. Details are [here](https://kubernetes.io/docs/tasks/run-application/configure-pdb/)
enabled: false
# minAvailable: 1
# maxUnavailable: 1
Expand Down Expand Up @@ -82,15 +82,15 @@ server:
initContainers:
[]

# -- Node tolerations for server scheduling to nodes with taints. Ref: [https://kubernetes.io/docs/concepts/configuration/assign-pod-node/](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/)
# -- Node tolerations for server scheduling to nodes with taints. Details are [here](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/)
tolerations:
[]
# - key: "key"
# operator: "Equal|Exists"
# value: "value"
# effect: "NoSchedule|PreferNoSchedule"

# -- Pod's node selector. Ref: [https://kubernetes.io/docs/user-guide/node-selection/](https://kubernetes.io/docs/user-guide/node-selection/)
# -- Pod's node selector. Details are [here](https://kubernetes.io/docs/user-guide/node-selection/)
nodeSelector: {}

# -- Pod affinity
Expand Down Expand Up @@ -118,7 +118,7 @@ server:
# -- Create/use Persistent Volume Claim for server component. Empty dir if false
enabled: false

# -- Array of access modes. Must match those of existing PV or dynamic provisioner. Ref: [http://kubernetes.io/docs/user-guide/persistent-volumes/](http://kubernetes.io/docs/user-guide/persistent-volumes/)
# -- Array of access modes. Must match those of existing PV or dynamic provisioner. Details are [here](http://kubernetes.io/docs/user-guide/persistent-volumes/)
accessModes:
- ReadWriteOnce
# -- Persistant volume annotations
Expand Down Expand Up @@ -149,7 +149,7 @@ server:
# -- Pod's management policy
podManagementPolicy: OrderedReady

# -- Resource object. Ref: [http://kubernetes.io/docs/user-guide/compute-resources/](http://kubernetes.io/docs/user-guide/compute-resources/
# -- Resource object. Details are [here](http://kubernetes.io/docs/user-guide/compute-resources/)
resources:
{}
# limits:
Expand All @@ -160,23 +160,23 @@ server:
# memory: 512Mi

probe:
# Indicates whether the Container is ready to service requests. If the readiness probe fails, the endpoints controller removes the Pod's IP address from the endpoints of all Services that match the Pod. The default state of readiness before the initial delay is Failure. If a Container does not provide a readiness probe, the default state is Success.
# -- Indicates whether the Container is ready to service requests. If the readiness probe fails, the endpoints controller removes the Pod's IP address from the endpoints of all Services that match the Pod. The default state of readiness before the initial delay is Failure. If a Container does not provide a readiness probe, the default state is Success.
readiness:
httpGet: {}
initialDelaySeconds: 5
periodSeconds: 15
timeoutSeconds: 5
failureThreshold: 3

# Indicates whether the Container is running. If the liveness probe fails, the kubelet kills the Container, and the Container is subjected to its restart policy. If a Container does not provide a liveness probe, the default state is Success.
# -- Indicates whether the Container is running. If the liveness probe fails, the kubelet kills the Container, and the Container is subjected to its restart policy. If a Container does not provide a liveness probe, the default state is Success.
liveness:
tcpSocket: {}
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 10

# Indicates whether the Container is done with potentially costly initialization. If set it is executed first. If it fails Container is restarted. If it succeeds liveness and readiness probes takes over.
# -- Indicates whether the Container is done with potentially costly initialization. If set it is executed first. If it fails Container is restarted. If it succeeds liveness and readiness probes takes over.
startup: {}
# tcpSocket: {}
# failureThreshold: 30
Expand All @@ -193,7 +193,7 @@ server:
- ALL
readOnlyRootFilesystem: true

# -- Pod's security context. Ref: [https://kubernetes.io/docs/tasks/configure-pod-container/security-context/](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)
# -- Pod's security context. Details are [here](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)
podSecurityContext:
enabled: true
fsGroup: 2000
Expand Down Expand Up @@ -235,7 +235,7 @@ server:
labels: {}
# -- Service ClusterIP
clusterIP: ""
# -- Service External IPs. Ref: [https://kubernetes.io/docs/user-guide/services/#external-ips]( https://kubernetes.io/docs/user-guide/services/#external-ips)
# -- Service External IPs. Details are [here]( https://kubernetes.io/docs/user-guide/services/#external-ips)
externalIPs: []
# -- Service load balacner IP
loadBalancerIP: ""
Expand Down Expand Up @@ -307,6 +307,7 @@ fluent-bit:
config:
# -- Note that Host must be replaced to match your VictoriaLogs service name
# Default format points to VictoriaLogs service.
# @notationType -- tpl
outputs: |
[OUTPUT]
Name http
Expand All @@ -319,6 +320,8 @@ fluent-bit:
json_date_format iso8601
header AccountID 0
header ProjectID 0
# -- FluentBit configuration filters
# @notationType -- tpl
filters: |
[FILTER]
Name kubernetes
Expand Down
Loading

0 comments on commit 6b4b57c

Please sign in to comment.