golang.org/x/build@v0.0.0-20240506185731-218518f32b70/devapp/deployment-staging.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    name: devapp-deployment
     9  spec:
    10    replicas: 2
    11    selector:
    12      matchLabels:
    13        app: devapp
    14    template:
    15      metadata:
    16        labels:
    17          app: devapp
    18        annotations:
    19          container.seccomp.security.alpha.kubernetes.io/devapp: docker/default
    20          container.apparmor.security.beta.kubernetes.io/devapp: runtime/default
    21      spec:
    22        containers:
    23        - name: devapp
    24          image: gcr.io/go-dashboard-dev/devapp:latest
    25          imagePullPolicy: Always
    26          command: ["/devapp", "-listen=:80", "-autocert-bucket=golang-devapp-dev-autocert"]
    27          readinessProbe:
    28            httpGet:
    29              path: /healthz
    30              port: 80
    31          ports:
    32          - containerPort: 80
    33          - containerPort: 443
    34          resources:
    35            requests:
    36              cpu: "1"
    37              memory: "2Gi"
    38            limits:
    39              memory: "4Gi"