xref: /aosp_15_r20/external/perfetto/infra/bigtrace/gke/orchestrator-deployment.yaml (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
1# Copyright (C) 2024 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15apiVersion: apps/v1
16kind: Deployment
17metadata:
18  name: orchestrator
19spec:
20  replicas: 1
21  selector:
22    matchLabels:
23      app: orchestrator
24  template:
25    metadata:
26      labels:
27        app: orchestrator
28    spec:
29      containers:
30      - image: # [ZONE]-docker.pkg.dev/[PROJECT_NAME]/[REPO_NAME]/bigtrace_orchestrator
31        command: ["/perfetto/out/dist/orchestrator_main"]
32        args: ["-l", "worker:5052", "-r", "dns:///", "-s", "0.0.0.0:5051", "-t", "100"]
33        imagePullPolicy: IfNotPresent
34        name: orchestrator
35        ports:
36        - containerPort: 5051
37          protocol: TCP
38        resources:
39          requests:
40            cpu: "7"
41          limits:
42            cpu: "7"