github.com/metaprov/modela-operator@v0.0.0-20240118193048-f378be8b74d2/manifests/modela-system/apigatewayd/deployment.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 labels: 5 app.kubernetes.io/name: modela-api-gateway 6 app.kubernetes.io/part-of: modela 7 app.kubernetes.io/component: infra 8 name: modela-api-gateway 9 namespace: modela-system 10 spec: 11 strategy: 12 type: Recreate 13 selector: 14 matchLabels: 15 app.kubernetes.io/name: modela-api-gateway 16 template: 17 metadata: 18 labels: 19 app.kubernetes.io/name: modela-api-gateway 20 spec: 21 serviceAccountName: modela-api-gateway 22 containers: 23 - name: main 24 image: ghcr.io/metaprov/modela-api-gateway:latest 25 imagePullPolicy: IfNotPresent 26 ports: 27 - containerPort: 8080 28 name: grpc 29 - containerPort: 9090 30 name: metrics 31 - containerPort: 8008 32 name: profiling 33 volumeMounts: 34 - name: data 35 mountPath: /var/opt/modela/data 36 env: 37 - name: CACHE_PATH 38 valueFrom: 39 configMapKeyRef: 40 name: modela-config 41 key: cachePath 42 resources: 43 requests: 44 memory: "128Mi" 45 cpu: "250m" 46 limits: 47 memory: "1024Mi" 48 cpu: "500m" 49 livenessProbe: 50 httpGet: 51 path: /healthz 52 port: 9090 53 initialDelaySeconds: 5 54 periodSeconds: 5 55 readinessProbe: 56 httpGet: 57 path: /readyz 58 port: 9090 59 initialDelaySeconds: 5 60 periodSeconds: 5 61 - name: proxy 62 image: ghcr.io/metaprov/modela-api-proxy:latest 63 imagePullPolicy: IfNotPresent 64 ports: 65 - containerPort: 8081 66 name: http 67 resources: 68 limits: 69 cpu: "100m" 70 memory: 128Mi 71 requests: 72 cpu: "50m" 73 memory: 64Mi 74 - name: clouds 75 image: ghcr.io/metaprov/modela-cloud-proxy:latest 76 imagePullPolicy: IfNotPresent 77 ports: 78 - containerPort: 8090 79 name: http 80 - containerPort: 9090 81 name: metrics 82 - containerPort: 8008 83 name: profiling 84 volumeMounts: 85 - name: data 86 mountPath: /var/opt/modela/data 87 env: 88 - name: CACHE_PATH 89 valueFrom: 90 configMapKeyRef: 91 name: modela-config 92 key: cachePath 93 resources: 94 limits: 95 cpu: "100m" 96 memory: "128Mi" 97 requests: 98 cpu: "50m" 99 memory: "64Mi" 100 readinessProbe: 101 exec: 102 command: [ "/bin/grpc_health_probe", "-addr=:8090" ] 103 initialDelaySeconds: 5 104 periodSeconds: 10 105 livenessProbe: 106 exec: 107 command: [ "/bin/grpc_health_probe", "-addr=:8090" ] 108 initialDelaySeconds: 5 109 periodSeconds: 10 110 volumes: 111 - name: data 112 emptyDir: { }