deployment.yml 1.03 KB
Newer Older
Ľuboslav Pivarč's avatar
CI  
Ľuboslav Pivarč committed
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: __NAMESPACE__
  name: cbio-api
  annotations:
    maintainer: Luboslav Pivarc <456130@muni.cz>
spec:
  selector:
    matchLabels:
      app: cbio-api
      type: ondemand
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: cbio-api
        type: ondemand
    spec:
      containers:
      - name: cbio-api
        image: __IMAGE__
        ports:
        - name: http
          containerPort: 8080
        livenessProbe:
          httpGet:
            path: /actuator/health
            port: http
          initialDelaySeconds: 10
          periodSeconds: 10
          timeoutSeconds: 1
          successThreshold: 1
          failureThreshold: 2
        readinessProbe:
          httpGet:
            path: /actuator/health
            port: http
          initialDelaySeconds: 1
          periodSeconds: 10
          timeoutSeconds: 1
          successThreshold: 1
          failureThreshold: 2