github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/syz-cluster/overlays/minikube/fake-gcs.yaml (about)

     1  # Copyright 2025 syzkaller project authors. All rights reserved.
     2  # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  apiVersion: apps/v1
     5  kind: Deployment
     6  metadata:
     7    name: fake-gcs-server
     8  spec:
     9    replicas: 1
    10    selector:
    11      matchLabels:
    12        app: fake-gcs-server
    13    template:
    14      metadata:
    15        labels:
    16          app: fake-gcs-server
    17      spec:
    18        initContainers:
    19        - name: create-test-bucket
    20          image: busybox
    21          command: ["sh", "-c", "mkdir -p /data/workflow-artifacts /data/blobs"]
    22          volumeMounts:
    23          - name: data-volume
    24            mountPath: /data
    25        containers:
    26        - name: fake-gcs-server
    27          imagePullPolicy: IfNotPresent
    28          image: fsouza/fake-gcs-server
    29          args: [
    30            "-scheme", "http",
    31            "-public-host", "fake-gcs-server.default.svc.cluster.local",
    32            "-external-url", "http://fake-gcs-server.default.svc.cluster.local:4443"
    33          ]
    34          ports:
    35          - containerPort: 4443
    36          volumeMounts:
    37          - name: data-volume
    38            mountPath: /data
    39        volumes:
    40        - name: data-volume
    41          emptyDir: {}
    42  ---
    43  apiVersion: v1
    44  kind: Service
    45  metadata:
    46    name: fake-gcs-server
    47  spec:
    48    selector:
    49      app: fake-gcs-server
    50    ports:
    51    - protocol: TCP
    52      port: 4443
    53      targetPort: 4443
    54    type: LoadBalancer
    55  
    56  ---
    57  apiVersion: networking.k8s.io/v1
    58  kind: NetworkPolicy
    59  metadata:
    60    name: fake-gcs-server-access
    61  spec:
    62    podSelector:
    63      matchLabels:
    64        app: fake-gcs-server
    65    policyTypes:
    66    - Ingress
    67    ingress:
    68    - from:
    69      - podSelector:
    70          matchLabels:
    71            app: controller
    72      - podSelector:
    73          matchLabels:
    74            app: reporter
    75      - podSelector:
    76          matchLabels:
    77            app: web-dashboard
    78      - podSelector:
    79          matchLabels:
    80            tier: workflow
    81      - podSelector:
    82          matchLabels:
    83            app: workflow-controller