instruction: Create a Dockerfile for workloads
output: ```dockerfile
  from the request, the outcome of the probe is treated as successful and kubelet creates an event to report the redirect failure.TCP probesFor a TCP probe, the kubelet makes the probe connection at the node, not in the Pod, which
  means that you can not use a service name in the host parameter since the kubelet is unable
  to resolve it.Probe-level terminationGracePeriodSecondsFEATURE STATE:
  Kubernetes v1.28 [stable]In 1.25 and above, users can specify a probe-level terminationGracePeriodSeconds
  as part of the probe specification. When both a pod- and probe-level
  terminationGracePeriodSeconds are set, the kubelet will use the probe-level value.When setting the terminationGracePeriodSeconds, please note the following:The kubelet always honors the probe-level terminationGracePeriodSeconds field if
  it is present on a Pod.If you have existing Pods where the terminationGracePeriodSeconds field is set and
  you no longer wish to use per-probe termination grace periods, you must delete
  those existing Pods.For example:spec:
   terminationGracePeriodSeconds: 3600 # pod-level
   containers:
   - name: test
   image: ...
  
   ports:
   - name: liveness-port
   containerPort: 8080
  
   livenessProbe:
   httpGet:
   path: /healthz
   port: liveness-port
   failureThreshold: 1
   periodSeconds: 60
   # Override pod-level terminationGracePeriodSeconds #
   terminationGracePeriodSeconds: 60
  Probe-level terminationGracePeriodSeconds cannot be set for readiness probes.
  It will be rejected by the API server.What's nextLearn more about
  Container Probes.You can also read the API references for:Pod, and specifically:container(s)probe(s)FeedbackWas this page helpful?Yes
  NoThanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on
  Stack Overflow.
  Open an issue in the GitHub Repository if you want to
  report a problem
  or
  suggest an improvement.Last modified January 17, 2025 at 1:48 PM PST: update image tag in manifest (7b5ca4d7a5)  Create child page
   Create an issue
   Print entire sectionBefore you beginDefine a liveness commandDefine a liveness HTTP requestDefine a TCP liveness probeDefine a gRPC liveness probeUse a named portProtect slow starting containers with startup probesDefine readiness probesConfigure ProbesHTTP probesTCP probesProbe-level terminationGracePeriodSecondsWhat's next© 2025 The Kubernetes Authors | Documentation Distributed under CC BY 4.0© 2025 The Linux Foundation ®. ```