golang.org/x/build@v0.0.0-20240506185731-218518f32b70/cmd/pubsubhelper/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: pubsubhelper-deployment 10 spec: 11 replicas: 1 12 selector: 13 matchLabels: 14 app: pubsubhelper 15 template: 16 metadata: 17 labels: 18 app: pubsubhelper 19 annotations: 20 container.seccomp.security.alpha.kubernetes.io/pubsubhelper: docker/default 21 container.apparmor.security.beta.kubernetes.io/pubsubhelper: runtime/default 22 spec: 23 serviceAccountName: pubsubhelper 24 containers: 25 - name: pubsubhelper 26 image: gcr.io/symbolic-datum-552/pubsubhelper:latest 27 imagePullPolicy: Always 28 command: ["/pubsubhelper", "-listen-http=:80", "-listen-https-autocert=:443", "-autocert-bucket=golang-pubsubhelper-autocert"] 29 ports: 30 - containerPort: 25 31 - containerPort: 80 32 - containerPort: 443 33 resources: 34 requests: 35 cpu: "1" 36 memory: "1Gi" 37 limits: 38 memory: "2Gi" 39 --- 40 apiVersion: v1 41 kind: Service 42 metadata: 43 namespace: prod 44 name: pubsubhelper 45 spec: 46 ports: 47 - port: 25 48 targetPort: 25 49 name: smtp 50 - port: 80 51 targetPort: 80 52 name: http 53 - port: 443 54 targetPort: 443 55 name: https 56 selector: 57 app: pubsubhelper 58 type: LoadBalancer 59 loadBalancerIP: 35.184.237.80