Skip to content

Commit

Permalink
sets: add StartupProbe to vss deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
3u13r committed Oct 16, 2024
1 parent ca5e22e commit 88304c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/kuberesource/sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ cryptsetup luksUUID "${device}"
cryptsetup open "${device}" state -d "${disk_encryption_key_path}"
mkdir -p /srv/state
mount /dev/mapper/state /srv/state
touch /done
sleep inf
`

Expand Down Expand Up @@ -582,12 +583,12 @@ sleep inf
WithResources(ResourceRequirements().
WithMemoryLimitAndRequest(100),
).
WithReadinessProbe(
WithStartupProbe(
Probe().
WithInitialDelaySeconds(1).
WithFailureThreshold(20).
WithPeriodSeconds(5).
WithExec(applycorev1.ExecAction().
WithCommand("/bin/sh", "-c", "ls /srv/state"),
WithCommand("/bin/sh", "-c", "cat /done"),
),
).
WithRestartPolicy(
Expand Down

0 comments on commit 88304c9

Please sign in to comment.