Merge pull request #123149 from mochizuki875/remove_probe_from_copy_pod

kubectl debug: Add --keep-* flag to control the removal of probes, labels, annotations, and initContainers from copy pod
This commit is contained in:
Kubernetes Prow Robot
2024-05-16 17:35:53 -07:00
committed by GitHub
6 changed files with 903 additions and 231 deletions

View File

@@ -0,0 +1,24 @@
apiVersion: v1
kind: Pod
metadata:
annotations:
test: test
labels:
run: target
name: target
spec:
containers:
- image: registry.k8s.io/nginx:1.7.9
name: target
readinessProbe:
exec:
command: ["/bin/sh", "-c", "cat probe"]
livenessProbe:
exec:
command: ["/bin/sh", "-c", "cat probe"]
startupProbe:
exec:
command: ["/bin/sh", "-c", "cat probe"]
initContainers:
- image: busybox
name: init