File tree 3 files changed +31
-0
lines changed
3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments