golang.org/x/build@v0.0.0-20240506185731-218518f32b70/cmd/gitmirror/deployment-mirroring.yaml (about)

     1  # Copyright 2022 The Go Authors. All rights reserved.
     2  # Use of this source code is governed by a BSD-style
     3  # license that can be found in the LICENSE file.
     4  
     5  apiVersion: apps/v1
     6  kind: Deployment
     7  metadata:
     8    namespace: prod
     9    name: gitmirror-mirroring-deployment
    10    labels:
    11      app: gitmirror-mirroring
    12  spec:
    13    replicas: 1
    14    selector:
    15      matchLabels:
    16        app: gitmirror-mirroring
    17    template:
    18      metadata:
    19        labels:
    20          app: gitmirror-mirroring
    21      spec:
    22        serviceAccountName: gitmirror
    23        volumes:
    24        - name: cache-volume
    25          emptyDir:
    26            medium: Memory
    27        containers:
    28        - name: gitmirror
    29          image: gcr.io/symbolic-datum-552/gitmirror:latest
    30          imagePullPolicy: Always
    31          env:
    32          - name: XDG_CACHE_HOME
    33            value: "/cache"
    34          command: ["/usr/bin/tini", "--", "/gitmirror", "-http=:8585", "-mirror=true", "-cachedir=/cache/gitmirror"]
    35          volumeMounts:
    36          - mountPath: /cache
    37            name: cache-volume
    38          ports:
    39          - containerPort: 8585
    40          livenessProbe:
    41            httpGet:
    42              path: /healthz
    43              port: 8585
    44            initialDelaySeconds: 600
    45            failureThreshold: 60
    46            periodSeconds: 10
    47          resources:
    48            requests:
    49              cpu: "2"
    50              memory: "5Gi"
    51            limits:
    52              cpu: "3"
    53              memory: "6Gi"