cbio-replicaset.yml 1.26 KB
Newer Older
Ľuboslav Pivarč's avatar
init  
Ľ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
48
49
50
51
52
apiVersion: apps/v1
kind: ReplicaSet
metadata:
  generateName: cbio-on-demand
  namespace: cbio-on-demand
  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
        image: lpivo/cbioportal:test7
        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
        # lifecycle:
        #   postStart:
        #     exec:
        #       command: ["python3", "$IMPORT"]