golang.org/x/build@v0.0.0-20240506185731-218518f32b70/devapp/deployment-prod.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: devapp-deployment
    10  spec:
    11    replicas: 2
    12    selector:
    13      matchLabels:
    14        app: devapp
    15    template:
    16      metadata:
    17        labels:
    18          app: devapp
    19        annotations:
    20          container.seccomp.security.alpha.kubernetes.io/devapp: docker/default
    21          container.apparmor.security.beta.kubernetes.io/devapp: runtime/default
    22      spec:
    23        serviceAccountName: devapp
    24        containers:
    25        - name: devapp
    26          image: gcr.io/symbolic-datum-552/devapp:latest
    27          imagePullPolicy: Always
    28          command: ["/devapp", "-listen-https-selfsigned=:444"]
    29          readinessProbe:
    30            httpGet:
    31              path: /healthz
    32              port: 444
    33              scheme: HTTPS
    34          ports:
    35          - containerPort: 444
    36          resources:
    37            requests:
    38              cpu: "1"
    39              memory: "12Gi"
    40              ephemeral-storage: "16Gi"
    41            limits:
    42              memory: "16Gi"
    43              ephemeral-storage: "32Gi"
    44  ---
    45  apiVersion: v1
    46  kind: Service
    47  metadata:
    48    namespace: prod
    49    name: devapp-internal
    50    annotations:
    51      cloud.google.com/neg: '{"ingress": false}'
    52      cloud.google.com/app-protocols: '{"https":"HTTP2"}'
    53  spec:
    54    ports:
    55      - port: 444
    56        targetPort: 444
    57        name: https
    58    selector:
    59      app: devapp
    60    type: NodePort