mirror of
https://github.com/wardviaene/kubernetes-course.git
synced 2026-07-10 22:29:16 +00:00
liveness-readiness
This commit is contained in:
29
deployment/helloworld-liveness-readiness.yml
Normal file
29
deployment/helloworld-liveness-readiness.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: helloworld-readiness
|
||||
spec:
|
||||
replicas: 3
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: helloworld
|
||||
spec:
|
||||
containers:
|
||||
- name: k8s-demo
|
||||
image: wardviaene/k8s-demo
|
||||
ports:
|
||||
- name: nodejs-port
|
||||
containerPort: 3000
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: nodejs-port
|
||||
initialDelaySeconds: 15
|
||||
timeoutSeconds: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: nodejs-port
|
||||
initialDelaySeconds: 15
|
||||
timeoutSeconds: 30
|
||||
Reference in New Issue
Block a user