pod-ctafrontend.yaml 1.68 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
apiVersion: v1
kind: Pod
metadata:
  name: ctafrontend
  labels:
    k8s-app: ctafrontend
spec:
  restartPolicy: Never
  containers:
  - name: ctafrontend
    image: gitlab-registry.cern.ch/cta/ctageneric:78673git921a9300
    stdin: true
    env:
    - name: MY_NAME
      valueFrom:
        fieldRef:
          fieldPath: metadata.name
    - name: MY_NAMESPACE
      valueFrom:
        fieldRef:
          fieldPath: metadata.namespace
    - name: INSTANCE_NAME
      value: "$(MY_NAMESPACE)"
24
25
26
27
28
29
30
31
32
33
    - name: BUILDTREE_BASE
      valueFrom:
        configMapKeyRef:
          name: buildtree
          key: base
    - name: BUILDTREE_SUBDIR
      valueFrom:
        configMapKeyRef:
          name: buildtree
          key: subdir
34
35
    - name: TERM
      value: "xterm"
36
37
    - name: CI_CONTEXT
      value: "nosystemd"
38
39
40
41
42
43
44
45
46
47
48
    command: ['/opt/run/bin/ctafrontend.sh']
    args: ["none"]
    volumeMounts:
    - mountPath: /shared
      name: shared
    - mountPath: /etc/config/objectstore
      name: myobjectstore
    - mountPath: /etc/config/database
      name: mydatabase
    - mountPath: /etc/config/library
      name: mylibrary
49
50
    - mountPath: /mnt/logs
      name: logstorage
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
    securityContext:
      # RW access needed to volumes
      privileged: true
    ports:
    - containerPort: 10955
      name: ctafrontend
      protocol: TCP
  volumes:
  - name: shared
    hostPath:
      path: /opt/cta
  - name: myobjectstore
    configMap:
      name: objectstore-config
  - name: mydatabase
    configMap:
      name: database-config
  - name: mylibrary
    configMap:
      name: library-config
71
72
73
  - name: logstorage
    persistentVolumeClaim:
      claimName: claimlogs
74
75
76

  imagePullSecrets:
  - name: ctaregsecret