deployment.yml 1.11 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
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:
Ľuboslav Pivarč's avatar
Ľuboslav Pivarč committed
24
25
      imagePullSecrets:
        - name: temporary
Ľuboslav Pivarč's avatar
CI  
Ľuboslav Pivarč committed
26
27
28
      containers:
      - name: cbio-api
        image: __IMAGE__
Ľuboslav Pivarč's avatar
Ľuboslav Pivarč committed
29
        imagePullPolicy: Always
Ľuboslav Pivarč's avatar
CI  
Ľuboslav Pivarč committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
        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