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

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