Skip to content

Commit

Permalink
liveness: replace test image liveness and goproxy with unified agnhost
Browse files Browse the repository at this point in the history
The agnhost binary has several subcommands which are can be used to test
different Kubernetes features.
The liveness subcommand will start a simple server that is alive for 10 seconds,
then reports unhealthy for the rest of its (hopefully) short existence.

Fixes: kata-containers#1864

Signed-off-by: Bin Lu <[email protected]>
Signed-off-by: Penny Zheng <[email protected]>
  • Loading branch information
Pennyzct committed Jul 29, 2019
1 parent ca948a2 commit dd61a30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ spec:
runtimeClassName: kata
containers:
- name: liveness
image: k8s.gcr.io/liveness
image: gcr.io/kubernetes-e2e-test-images/agnhost:2.2
args:
- /server
- liveness
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ kind: Pod
metadata:
name: tcptest
labels:
app: goproxy
app: tcp-liveness
spec:
runtimeClassName: kata
containers:
- name: goproxy
image: k8s.gcr.io/goproxy:0.1
- name: tcp-liveness
image: gcr.io/kubernetes-e2e-test-images/agnhost:2.2
args:
- liveness
ports:
- containerPort: 8080
readinessProbe:
Expand Down

0 comments on commit dd61a30

Please sign in to comment.