github.com/sentienttechnologies/studio-go-runner@v0.0.0-20201118202441-6d21f2ced8ee/examples/azure/deployment-1.13.yaml (about)

     1  # Copyright (c) 2019-2020 Cognizant Digital Business, Evolutionary AI. All rights reserved. Issued under the Apache 2.0 License.
     2  ---
     3  apiVersion: v1
     4  kind: ConfigMap
     5  metadata:
     6    name: studioml-env
     7  data:
     8    LOGXI_FORMAT: "happy,maxcol=1024"
     9    LOGXI: "*=DBG"
    10    QUEUE_MATCH: "^rmq_.*$"
    11    AMQP_URL: ""
    12    CLEAR_TEXT_MESSAGES: "true"
    13  ---
    14  apiVersion: v1
    15  kind: ServiceAccount
    16  metadata:
    17    name: studioml-account
    18  imagePullSecrets:
    19  - name: studioml-go-docker-key
    20    apiVersion: v1
    21  ---
    22  apiVersion: v1
    23  kind: Secret
    24  metadata:
    25    name: studioml-signing
    26  type: Opaque
    27  data:
    28    info: RHVtbXkgU2VjcmV0IHNvIHJlc291cmNlIHJlbWFpbnMgcHJlc2VudA==
    29  ---
    30  apiVersion: rbac.authorization.k8s.io/v1
    31  kind: ClusterRole
    32  metadata:
    33    name: studioml-role
    34  rules:
    35  - apiGroups:
    36    - ""
    37    resources:
    38    - configmaps
    39    verbs:
    40    - get
    41    - list
    42    - watch
    43  ---
    44  apiVersion: rbac.authorization.k8s.io/v1
    45  kind: RoleBinding
    46  metadata:
    47    name: studioml-role-bind
    48  subjects:
    49  - kind: ServiceAccount
    50    name: studioml-account
    51  roleRef:
    52    kind: ClusterRole
    53    name: studioml-role
    54    apiGroup: rbac.authorization.k8s.io
    55  ---
    56  apiVersion: apps/v1
    57  kind: Deployment
    58  metadata:
    59    name: studioml-go-runner-deployment
    60    labels:
    61      app: studioml-go-runner
    62  spec:
    63    progressDeadlineSeconds: 360
    64    selector:
    65      matchLabels:
    66        app: studioml-go-runner
    67    replicas: 20
    68    strategy:
    69      type: RollingUpdate
    70    template:
    71      metadata:
    72        labels:
    73          app: studioml-go-runner
    74      spec:
    75        serviceAccountName: studioml-account
    76        automountServiceAccountToken: true
    77        containers:
    78        - name: studioml-go-runner
    79          envFrom:
    80              - configMapRef:
    81                  name: studioml-env
    82          image: studioml/studio-go-runner
    83          #image: {{ expandenv "$azure_registry_name"}}.azurecr.io/{{ expandenv "$azure_registry_name"}}/{{.duat.module}}:{{.duat.version}}
    84          #image: nvidia/cuda:8.0-cudnn7-runtime-ubuntu16.04
    85          imagePullPolicy: Always
    86          resources:
    87            requests:
    88              nvidia.com/gpu: 1
    89              memory: "40Gi"
    90              cpu: "5"
    91            limits:
    92              nvidia.com/gpu: 1
    93              memory: "40Gi"
    94              cpu: "5"
    95          volumeMounts:
    96          - mountPath: /tmp
    97            name: tmp-volume
    98          - name: message-encryption
    99            mountPath: "/runner/certs/message/encryption"
   100            readOnly: true
   101          - name: encryption-passphrase
   102            mountPath: "/runner/certs/message/passphrase"
   103            readOnly: true
   104          - name: queue-signing
   105            mountPath: "/runner/certs/queues/signing"
   106            readOnly: true
   107        nodeSelector:
   108          beta.kubernetes.io/os: linux
   109        volumes:
   110          - name: tmp-volume
   111            emptyDir:
   112              sizeLimit: 80Gi
   113          - name: message-encryption
   114            secret:
   115              optional: false
   116              secretName: studioml-runner-key-secret
   117              items:
   118              - key: ssh-privatekey
   119                path: ssh-privatekey
   120              - key: ssh-publickey
   121                path: ssh-publickey
   122          - name: encryption-passphrase
   123            secret:
   124              optional: false
   125              secretName: studioml-runner-passphrase-secret
   126              items:
   127              - key: ssh-passphrase
   128                path: ssh-passphrase
   129          - name: queue-signing
   130            secret:
   131              optional: false
   132              secretName: studioml-signing