Skip to content

CFP: enable initalDelaySeconds on StartupProbe #28574

@cdenneen

Description

@cdenneen

Currently the helm release doesn't supply initialDelaySeconds which defaults to 0 but it would be useful to avoid spamming unnecessary Warning events to the api:

Started | Normal | Oct 12, 2023, 5:08:37 PM | Started container cilium-agent
Unhealthy | Warning | Oct 12, 2023, 5:08:37 PM | Startup probe failed: Get "http://127.0.0.1:9879/healthz": dial tcp 127.0.0.1:9879: connect: connection refused
Pulled | Normal | Oct 12, 2023, 5:08:36 PM | Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created | Normal | Oct 12, 2023, 5:08:36 PM | Created container cilium-agent
Pulled | Normal | Oct 12, 2023, 5:08:35 PM | Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created | Normal | Oct 12, 2023, 5:08:35 PM | Created container install-cni-binaries
Started | Normal | Oct 12, 2023, 5:08:35 PM | Started container install-cni-binaries
Pulled | Normal | Oct 12, 2023, 5:08:33 PM | Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created | Normal | Oct 12, 2023, 5:08:33 PM | Created container clean-cilium-state
Started | Normal | Oct 12, 2023, 5:08:33 PM | Started container clean-cilium-state
Pulled | Normal | Oct 12, 2023, 5:08:31 PM | Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created | Normal | Oct 12, 2023, 5:08:31 PM | Created container mount-bpf-fs
Started | Normal | Oct 12, 2023, 5:08:31 PM | Started container mount-bpf-fs
Started | Normal | Oct 12, 2023, 5:08:28 PM | Started container apply-sysctl-overwrites
Pulled | Normal | Oct 12, 2023, 5:08:27 PM | Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created | Normal | Oct 12, 2023, 5:08:27 PM | Created container apply-sysctl-overwrites
Pulled | Normal | Oct 12, 2023, 5:08:26 PM | Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created | Normal | Oct 12, 2023, 5:08:26 PM | Created container mount-cgroup
Started | Normal | Oct 12, 2023, 5:08:26 PM | Started container mount-cgroup
Created | Normal | Oct 12, 2023, 5:08:24 PM | Created container config
Started | Normal | Oct 12, 2023, 5:08:24 PM | Started container config
Pulled | Normal | Oct 12, 2023, 5:08:20 PM | Successfully pulled image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" in 8.677826618s (8.677841669s including waiting)
Pulling | Normal | Oct 12, 2023, 5:08:12 PM | Pulling image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35"
Scheduled | Normal | Oct 12, 2023, 5:08:11 PM | Successfully assigned kube-system/cilium-45h7x to ip-10-208-83-146.ec2.internal
Started	Normal	Oct 12, 2023, 5:08:37 PM	Started container cilium-agent
Unhealthy	Warning	Oct 12, 2023, 5:08:37 PM	Startup probe failed: Get "[http://127.0.0.1:9879/healthz":](http://127.0.0.1:9879/healthz) dial tcp 127.0.0.1:9879: connect: connection refused
Pulled	Normal	Oct 12, 2023, 5:08:36 PM	Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created	Normal	Oct 12, 2023, 5:08:36 PM	Created container cilium-agent
Pulled	Normal	Oct 12, 2023, 5:08:35 PM	Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created	Normal	Oct 12, 2023, 5:08:35 PM	Created container install-cni-binaries
Started	Normal	Oct 12, 2023, 5:08:35 PM	Started container install-cni-binaries
Pulled	Normal	Oct 12, 2023, 5:08:33 PM	Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created	Normal	Oct 12, 2023, 5:08:33 PM	Created container clean-cilium-state
Started	Normal	Oct 12, 2023, 5:08:33 PM	Started container clean-cilium-state
Pulled	Normal	Oct 12, 2023, 5:08:31 PM	Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created	Normal	Oct 12, 2023, 5:08:31 PM	Created container mount-bpf-fs
Started	Normal	Oct 12, 2023, 5:08:31 PM	Started container mount-bpf-fs
Started	Normal	Oct 12, 2023, 5:08:28 PM	Started container apply-sysctl-overwrites
Pulled	Normal	Oct 12, 2023, 5:08:27 PM	Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created	Normal	Oct 12, 2023, 5:08:27 PM	Created container apply-sysctl-overwrites
Pulled	Normal	Oct 12, 2023, 5:08:26 PM	Container image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" already present on machine
Created	Normal	Oct 12, 2023, 5:08:26 PM	Created container mount-cgroup
Started	Normal	Oct 12, 2023, 5:08:26 PM	Started container mount-cgroup
Created	Normal	Oct 12, 2023, 5:08:24 PM	Created container config
Started	Normal	Oct 12, 2023, 5:08:24 PM	Started container config
Pulled	Normal	Oct 12, 2023, 5:08:20 PM	Successfully pulled image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35" in 8.677826618s (8.677841669s including waiting)
Pulling	Normal	Oct 12, 2023, 5:08:12 PM	Pulling image "quay.io/cilium/cilium:v1.14.2@sha256:6263f3a3d5d63b267b538298dbeb5ae87da3efacf09a2c620446c873ba807d35"
Scheduled	Normal	Oct 12, 2023, 5:08:11 PM	Successfully assigned kube-system/cilium-45h7x to ip-10-208-83-146.ec2.internal

It literally needed 1 more second to pass, so maybe a 5s delay being default wouldn't be so bad?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/agentCilium agent related.area/helmImpacts helm charts and user deployment experiencegood-first-issueGood starting point for new developers, which requires minimal understanding of Cilium.help-wantedPlease volunteer for this by adding yourself as an assignee!kind/featureThis introduces new functionality.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions