summaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/templates/modelloader-deployment.yaml
blob: ec6a9178a7b083248e79e32d8b02f8a52355d29c (plain)
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: model-loader-service
  namespace: "{{ .Values.nsPrefix }}-aai"
spec:
  selector:
    matchLabels:
      app: model-loader-service
  template:
    metadata:
      labels:
        app: model-loader-service
      name: model-loader-service
    spec:
      containers:
      - env:
        - name: CONFIG_HOME
          value: /opt/app/model-loader/config/
        volumeMounts:
        - mountPath: /opt/app/model-loader/config/
          name: aai-model-loader-config
        - mountPath: /opt/app/model-loader/config/auth/aai-os-cert.p12
          name: aai-os-cert
        - mountPath: /logs/
          name: aai-model-loader-logs
        image: "{{ .Values.image.modelLoaderImage }}:{{ .Values.image.modelLoaderVersion }}"
        imagePullPolicy: {{ .Values.pullPolicy }}
        name: model-loader-service
        ports:
        - containerPort: 8080
        - containerPort: 8443
      volumes:
      - name: aai-model-loader-config
        hostPath:
          path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/appconfig/"
      - name: aai-model-loader-logs
        hostPath:
          path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/logs/"
      - name: aai-os-cert
        secret:
          secretName: secret-{{ .Values.nsPrefix }}-aai
      restartPolicy: Always
      imagePullSecrets:
      - name: "{{ .Values.nsPrefix }}-docker-registry-key"