-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add logs when pod failed to start when using
WaitUntilPodAvailableE
Fix #1251 Signed-off-by: Charly Molter <charly.molter@konghq.com>
- Loading branch information
Showing
9 changed files
with
324 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
test/fixtures/kubernetes-failing-deployment/container-stops-after-2s-deployment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test-app | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: test-app | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: test-app | ||
spec: | ||
containers: | ||
- name: app | ||
image: busybox | ||
command: | ||
["/bin/sh", "-c", "for i in `seq 1 2`; do echo ${i} sleeping 1 sec; sleep 1; done; echo Finished!"] | ||
|
28 changes: 28 additions & 0 deletions
28
test/fixtures/kubernetes-failing-deployment/happy-then-fail-deployment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test-app | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: test-app | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: test-app | ||
spec: | ||
containers: | ||
- name: app | ||
image: busybox | ||
command: | ||
["/bin/sh", "-c", "touch /tmp/healthy;for i in `seq 1 3`; do echo ${i} sleeping 1 sec; sleep 1; done; rm /tmp/healthy; sleep 1000"] | ||
readinessProbe: | ||
exec: | ||
command: | ||
- cat | ||
- /tmp/healthy | ||
periodSeconds: 1 | ||
initialDelaySeconds: 1 | ||
|
28 changes: 28 additions & 0 deletions
28
test/fixtures/kubernetes-failing-deployment/probe-slow-to-pass-deployment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test-app | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: test-app | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: test-app | ||
spec: | ||
containers: | ||
- name: app | ||
image: busybox | ||
command: | ||
["/bin/sh", "-c", "for i in `seq 1 10`; do echo ${i} sleeping 1 sec; sleep 1; done; touch /tmp/healthy"] | ||
startupProbe: | ||
exec: | ||
command: | ||
- cat | ||
- /tmp/healthy | ||
periodSeconds: 1 | ||
initialDelaySeconds: 1 | ||
|
23 changes: 23 additions & 0 deletions
23
test/fixtures/kubernetes-failing-deployment/too-much-resource-deployment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test-app | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: test-app | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: test-app | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1.15.7 | ||
ports: | ||
- containerPort: 80 | ||
resources: | ||
requests: | ||
cpu: 100 |
20 changes: 20 additions & 0 deletions
20
test/fixtures/kubernetes-failing-deployment/unknown-image-deployment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test-app | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: test-app | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: test-app | ||
spec: | ||
containers: | ||
- name: app | ||
image: not-an-place/not-an-app | ||
ports: | ||
- containerPort: 5000 |
Oops, something went wrong.