golang.org/x/build@v0.0.0-20240506185731-218518f32b70/influx/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: influx-deployment
    10  spec:
    11    replicas: 1 # open source influx only supports a single instance
    12    selector:
    13      matchLabels:
    14        app: influx
    15    strategy:
    16      # Kill old pod, then start new one.
    17      #
    18      # We must do this otherwise we can't transfer persistent volume (it
    19      # won't be available until the old pod dies).
    20      type: Recreate
    21    template:
    22      metadata:
    23        labels:
    24          app: influx
    25      spec:
    26        serviceAccountName: influx
    27        volumes:
    28        - name: influx-data
    29          persistentVolumeClaim:
    30            claimName: influx-data-claim
    31        containers:
    32        - name: influx
    33          image: gcr.io/symbolic-datum-552/influx:latest
    34          imagePullPolicy: Always
    35          command: ["/run-influx", "-listen-https-selfsigned=:443"]
    36          volumeMounts:
    37          - mountPath: /var/lib/influxdb2
    38            name: influx-data
    39          ports:
    40          - containerPort: 443
    41          resources:
    42            requests:
    43              cpu: "4"
    44              memory: "4Gi"
    45            limits:
    46              memory: "8Gi"
    47  ---
    48  apiVersion: v1
    49  kind: ServiceAccount
    50  metadata:
    51    namespace: prod
    52    name: influx
    53    annotations:
    54      iam.gke.io/gcp-service-account: influx@symbolic-datum-552.iam.gserviceaccount.com
    55  ---
    56  apiVersion: v1
    57  kind: PersistentVolumeClaim
    58  metadata:
    59    namespace: prod
    60    name: influx-data-claim
    61  spec:
    62    storageClassName: standard-rwo
    63    accessModes:
    64      - ReadWriteOnce
    65    resources:
    66      requests:
    67        storage: 100Gi
    68  ---
    69  apiVersion: v1
    70  kind: Service
    71  metadata:
    72    namespace: prod
    73    name: influx-internal
    74    annotations:
    75      cloud.google.com/neg: '{"ingress": false}'
    76      cloud.google.com/app-protocols: '{"https":"HTTP2"}'
    77  spec:
    78    ports:
    79      - port: 443
    80        targetPort: 443
    81        name: https
    82    selector:
    83      app: influx
    84    type: NodePort