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

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    labels:
     5      app.kubernetes.io/name: modela-online-store
     6      app.kubernetes.io/part-of: modela
     7    name: modela-online-store
     8    namespace: modela-system
     9  spec:
    10    strategy:
    11      type: Recreate
    12    selector:
    13      matchLabels:
    14        app.kubernetes.io/name: modela-online-store
    15    template:
    16      metadata:
    17        labels:
    18          app.kubernetes.io/name: modela-online-store
    19      spec:
    20        containers:
    21          - name: main
    22            image: ghcr.io/metaprov/modela-online-store:latest
    23            imagePullPolicy: IfNotPresent
    24            ports:
    25              - containerPort: 8080
    26                name: http
    27              - containerPort: 9090
    28                name: metrics
    29            resources:
    30              limits:
    31                cpu: "200m"
    32                memory: 512Mi
    33              requests:
    34                cpu: "100m"
    35                memory: 256Mi    
    36            readinessProbe:
    37              exec:
    38                command: ["/bin/grpc_health_probe", "-addr=:8092"]
    39              initialDelaySeconds: 60
    40            livenessProbe:
    41                exec:
    42                  command: ["/bin/grpc_health_probe", "-addr=:8092"]
    43                initialDelaySeconds: 60
    44            env:
    45              - name: HOST
    46                value:  "0.0.0.0"
    47              - name: PORT
    48                value: "8080"
    49              - name: DEBUG
    50                value: "true"
    51              - name: ENV
    52                value:  "dev"
    53              - name: CACHE_PATH
    54                value: "/var/opt/modela/data"
    55              - name: CLOUDS_HOST
    56                value: "127.0.0.1"
    57              - name: CLOUDS_PORT
    58                value: "8090"