github.com/metaprov/modela-operator@v0.0.0-20240118193048-f378be8b74d2/manifests/modela-system/dataplane/deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    labels:
     5      app.kubernetes.io/name: modela-data-plane
     6      app.kubernetes.io/part-of: modela
     7    name: modela-data-plane
     8    namespace: modela-system
     9  spec:
    10    strategy:
    11      type: Recreate
    12    selector:
    13      matchLabels:
    14        app.kubernetes.io/name: modela-data-plane
    15    template:
    16      metadata:
    17        labels:
    18          app.kubernetes.io/name: modela-data-plane
    19      spec:
    20        serviceAccountName: modela-data-plane
    21        containers:
    22          - name: main
    23            image: ghcr.io/metaprov/modela-data-plane:latest
    24            imagePullPolicy: IfNotPresent
    25            ports:
    26              - containerPort: 8080
    27                name: http
    28              - containerPort: 9090
    29                name: metrics
    30              - containerPort: 8008
    31                name: profiling
    32            volumeMounts:
    33              - name: data
    34                mountPath: /var/opt/modela/data
    35            resources:
    36              limits:
    37                cpu: "1000m"
    38                memory: 2048Mi
    39              requests:
    40                cpu: "100m"
    41                memory: 512Mi
    42            readinessProbe:
    43              exec:
    44                command: ["/bin/grpc_health_probe", "-addr=:8080"]
    45              initialDelaySeconds: 10
    46              periodSeconds: 10
    47            livenessProbe:
    48              exec:
    49                command: ["/bin/grpc_health_probe", "-addr=:8080"]
    50              initialDelaySeconds: 10
    51              periodSeconds: 10
    52            env:
    53              - name: CACHE_PATH
    54                valueFrom:
    55                  configMapKeyRef:
    56                    name: modela-config
    57                    key: cachePath
    58          - name: clouds
    59            image: ghcr.io/metaprov/modela-cloud-proxy:latest
    60            imagePullPolicy: IfNotPresent
    61            ports:
    62              - name: grpc
    63                containerPort: 8090
    64            volumeMounts:
    65                - name: data
    66                  mountPath: /var/opt/modela/data
    67            env:
    68              - name: CACHE_PATH
    69                valueFrom:
    70                  configMapKeyRef:
    71                    name: modela-config
    72                    key: cachePath
    73            readinessProbe:
    74              exec:
    75                command: [ "/bin/grpc_health_probe", "-addr=:8090" ]
    76              initialDelaySeconds: 5
    77              periodSeconds: 10
    78            livenessProbe:
    79              exec:
    80                command: [ "/bin/grpc_health_probe", "-addr=:8090" ]
    81              initialDelaySeconds: 5
    82              periodSeconds: 10
    83            resources:
    84              limits:
    85                cpu: "100m"
    86                memory: "128Mi"
    87              requests:
    88                cpu: "50m"
    89                memory: "64Mi"
    90        volumes:
    91          - name : data
    92            emptyDir: {}