Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ helm install hyperfleet-sentinel oci://REGISTRY/hyperfleet-sentinel \
| nodeSelector | object | `{}` | Node selector constraints for pod scheduling |
| tolerations | list | `[]` | Tolerations for pod scheduling |
| affinity | object | `{}` | Affinity rules for pod scheduling |
| podDisruptionBudget | object | `{"enabled":true,"maxUnavailable":1}` | PodDisruptionBudget configuration |
| extraVolumes | list | `[]` | |
| extraVolumeMounts | list | `[]` | |
| podDisruptionBudget.enabled | bool | `true` | Enable the PDB |
| podDisruptionBudget.maxUnavailable | int | `1` | Maximum number of pods that can be unavailable during disruption |
| config | object | `{"clients":{"hyperfleetApi":{"baseUrl":"http://hyperfleet-api:8000","timeout":"10s","version":"v1"}},"debugConfig":false,"log":{"format":"json","level":"info","output":"stdout"},"messageData":{"generation":"resource.generation","href":"resource.href","id":"resource.id","kind":"resource.kind"},"messageDecision":{"params":[{"expr":"condition(\"Reconciled\").last_updated_time","name":"ref_time"},{"expr":"condition(\"Reconciled\").status == \"True\"","name":"is_reconciled"},{"expr":"ref_time != \"\"","name":"has_ref_time"},{"expr":"!is_reconciled && resource.generation == 1","name":"is_new_resource"},{"expr":"resource.generation > condition(\"Reconciled\").observed_generation","name":"generation_mismatch"},{"expr":"is_reconciled && has_ref_time && now - timestamp(ref_time) > duration(\"30m\")","name":"reconciled_and_stale"},{"expr":"!is_reconciled && has_ref_time && now - timestamp(ref_time) > duration(\"10s\")","name":"not_reconciled_and_debounced"}],"result":"is_new_resource || generation_mismatch || reconciled_and_stale || not_reconciled_and_debounced"},"pollInterval":"5s","resourceSelector":[{"label":"shard","value":"1"}],"resourceType":"clusters","sentinel":{"name":"hyperfleet-sentinel-{{ .Values.config.resourceType }}"}}` | Sentinel application configuration. All settings in this section generate the ConfigMap consumed by the sentinel. |
Expand Down
6 changes: 6 additions & 0 deletions charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ spec:
mountPath: /etc/hyperfleet/broker.yaml
subPath: broker.yaml
readOnly: true
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 10 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
Expand All @@ -117,6 +120,9 @@ spec:
- name: broker-config
configMap:
name: {{ include "sentinel.fullname" . }}-broker-config
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
13 changes: 12 additions & 1 deletion charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,18 @@ tolerations: []
# -- Affinity rules for pod scheduling
affinity: {}

# -- PodDisruptionBudget configuration
# Extra volumes to add to the pod
extraVolumes: []
# - name: example-volume
# emptyDir: {}

# Extra volume mounts to add to the container
extraVolumeMounts: []
# - name: example-volume
# mountPath: /example

# PodDisruptionBudget configuration
# See: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
podDisruptionBudget:
# -- Enable the PDB
enabled: true
Expand Down