Skip to content

Commit 5cdba3a

Browse files
committed
initial commit
0 parents  commit 5cdba3a

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

Readme.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# sky
2+
In sky repository I want to put all the stuff I use for learning kubernetes Let me start with this picture
3+
4+
![](image/kubernetese.jpeg)
5+
6+
## Probes
7+
liveness probe: to know when to restart a container<br/>
8+
readiness probe: to know when a container is ready to start accepting traffic<br/>
9+
startup probe: to know when a container application has started<br/>
10+

image/kubernetese.jpeg

40.8 KB
Loading

liveness/exec.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
labels:
5+
test: liveness
6+
name: liveness-exec
7+
spec:
8+
containers:
9+
- name: liveness
10+
image: k8s.gcr.io/busybox
11+
args:
12+
- /bin/sh
13+
- -c
14+
- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600
15+
livenessProbe:
16+
exec:
17+
command:
18+
- cat
19+
- /tmp/healthy
20+
initialDelaySeconds: 5
21+
periodSeconds: 5

0 commit comments

Comments
 (0)