Skip to content

Commit

Permalink
Create liveness_readiness_probes_example.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
devopstrainingbanglore authored Mar 31, 2020
1 parent d689819 commit 18a8e42
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions liveness_readiness_probes_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: javawebapprs
spec:
replicas: 3
selector:
matchLabels:
app: javawebapp
template:
metadata:
name: javawebapppod
labels:
app: javawebapp
spec:
containers:
- name: javawebappcontainer
image: dockerhandson/java-web-app:2
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /java-web-app
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 15
livenessProbe:
httpGet:
path: /java-web-app
port: 8080
initialDelaySeconds: 15
timeoutSeconds: 1
periodSeconds: 15

0 comments on commit 18a8e42

Please sign in to comment.