deployment.yaml 1.87 KB
Newer Older
Jonathan Schaeffer's avatar
Jonathan Schaeffer 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ws-station-deployment
  labels:
    environment: production
    app: ws-station
spec:
  replicas: 3
  selector:
    matchLabels:
      app: ws-station
  template: # POD template
    metadata:
      labels:
        app: ws-station
        environment: production
    spec:
      containers:
      - name: redis
        image: redis
        ports:
          - containerPort: 6379
            name: redis
            protocol: TCP
      - name: ws-station
        image: gricad-registry.univ-grenoble-alpes.fr/osug/resif/ws-station/ws-station:269e09b2
        imagePullPolicy: Always
        ports:
        - containerPort: 8080
        env:
        - name: RUNMODE
          value: production
        - name: PGHOST
          value: resif-pgprod.u-ga.fr
        - name: PGPORT
          value: "5432"
        - name: PGDATABASE
          value: resifInv-Preprod
        - name: PGUSER
          value: wsstation
        - name: PGPASSWORD
          valueFrom:
            secretKeyRef:
              name: ws-station-production-secrets
              key: wsstation
      - name: fdsnwsstat
        image: gricad-registry.univ-grenoble-alpes.fr/osug/resif/fdsnwsstat/fdsnwsstat:a08b331d
        ports:
          -   containerPort: 8000
        env:
          - name: STATS_DBURI
            valueFrom:
              secretKeyRef:
                name: ws-station-production-secrets
                key: resifstatsuri
          - name: INV_DBURI
            valueFrom:
              secretKeyRef:
                name: ws-station-production-secrets
                key: resifinvuri
          - name: AUTH_DBURI
            valueFrom:
              secretKeyRef:
                name: ws-station-production-secrets
                key: resifauthuri
          - name: RUNMODE
            value: production
          - name: REDIS_QUEUE
            value: fdsnwsstat