frontend.yaml 944 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
apiVersion: apps/v1
kind: Deployment
metadata:
  name: frontend
  labels:
      app: frontend
spec:
  replicas: 1
  selector:
    matchLabels:
      app: frontend
  template:
    metadata:
      labels:
        app: frontend
    spec:
      containers:
      - name: frontend-app
        image: $CI_REGISTRY_IMAGE/frontend:${CI_COMMIT_REF_NAME}
        imagePullPolicy: Always
        env:
        - name: NODE_ENV
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
23
          value: "production"
24
25
        - name: VUE_APP_GIT_COMMIT
          value: ${CI_COMMIT_SHORT_SHA}
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
        ports:
        - containerPort: 80
        resources:
          requests:
            memory: "128Mi"
            cpu: "250m"
          limits:
            memory: "256Mi"
            cpu: "500m"
      imagePullSecrets:
        - name: registry-gitlab
---
apiVersion: v1
kind: Service
metadata:
  name: frontend
  labels:
    app: frontend
spec:
  type: ClusterIP
  ports:
  - port: 80
  selector:
    app: frontend