cbio-replicaset.yml 1.4 KB
Newer Older
Ľuboslav Pivarč's avatar
init  
Ľuboslav Pivarč committed
1
2
3
4
apiVersion: apps/v1
kind: ReplicaSet
metadata:
  generateName: cbio-on-demand
Ľuboslav Pivarč's avatar
Ľuboslav Pivarč committed
5
  #namespace: cbio-on-demand
Ľuboslav Pivarč's avatar
init  
Ľuboslav Pivarč committed
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
  labels:
    app: cbio
    type: ondemand
  annotations:
    maintainer: Luboslav Pivarc <456130@muni.cz>
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cbio
      type: ondemand
      # generated by API by user id from request
      #user: Luboslav
      # generated by API unique for user
      #instance: "1"
  template:
    metadata:
      labels:
        app: cbio
        type: ondemand
        # generated by API by user id from request
        #user: Luboslav
        # generated by API unique for user
        #instance: "1"
    spec:
      containers:
        - name: cbio
Ľuboslav Pivarč's avatar
Ľuboslav Pivarč committed
33
          image: lpivo/cbioportal:tr8
Ľuboslav Pivarč's avatar
init  
Ľuboslav Pivarč committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
          ports:
            - name: http
              containerPort: 8080
          env:
            - name: DBHOST
              # generated by API from service name
              value: cbio-on-demand-dbpjvrw
            - name: IMPORT
              value: /etc/data-loading/cbio-client.py
            - name: ID
              # generated by API from user request
              value: "4"
            - name: MOVE
              #generated by API from generated url
              value: cbioportal
            - name: URL
              value: 'test'
          lifecycle:
            postStart:
              exec:
                command: ["python3", "/etc/data-loading/cbio-client.py"]