Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

deployment.yaml 976 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ws-station-deployment
  labels:
    environment: preprod
    app: ws-station
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ws-station
  template: # POD template
    metadata:
      labels:
        app: ws-station
Jonathan Schaeffer's avatar
Jonathan Schaeffer committed
18
        environment: preprod
19
20
21
    spec:
      containers:
      - name: ws-station
Jonathan Schaeffer's avatar
Jonathan Schaeffer committed
22
23
        image: gricad-registry.univ-grenoble-alpes.fr/osug/resif/ws-station/ws-station:stationstats
        imagePullPolicy: Always
24
25
26
        ports:
        - containerPort: 8080
        env:
Jonathan Schaeffer's avatar
Jonathan Schaeffer committed
27
28
        - name: RUNMODE
          value: test
29
30
        - name: PGHOST
          value: resif-pgpreprod.u-ga.fr
Jonathan Schaeffer's avatar
Jonathan Schaeffer committed
31
32
        - name: PGPORT
          value: "5432"
33
        - name: PGDATABASE
Jonathan Schaeffer's avatar
Jonathan Schaeffer committed
34
          value: resifInv-Preprod
35
        - name: PGUSER
Jonathan Schaeffer's avatar
Jonathan Schaeffer committed
36
          value: wsstation
37
38
39
40
        - name: PGPASSWORD
          valueFrom:
            secretKeyRef:
              name: ws-station-preprod-secrets
Jonathan Schaeffer's avatar
Jonathan Schaeffer committed
41
              key: wsstation