aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/deployment.yaml
blob: 6f22adba6f1fb2ddaa29d808c573e88a6ff6acfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: showreadiness
spec:
  replicas: 3
  template:
    metadata:
      labels:
        app: showreadiness
    spec:
      containers:
      - name: showreadiness
        image: showreadiness:1 #Your Repo Here
        livenessProbe:
            httpGet:
                path: /ping
                port: 80
                scheme: HTTP
            initialDelaySeconds: 15
            timeoutSeconds: 2
        readinessProbe:
            httpGet:
                path: /ready
                port: 80
                scheme: HTTP
            initialDelaySeconds: 10
            timeoutSeconds: 1              
        resources:
          requests:
            memory: 16Mi
          limits:
            memory: 16Mi