Carlos Amedee | 55fdac8 | 2021-08-31 15:11:22 -0400 | [diff] [blame] | 1 | apiVersion: apps/v1 |
Brad Fitzpatrick | e7b51e3 | 2017-04-03 13:03:23 -0700 | [diff] [blame] | 2 | kind: Deployment |
| 3 | metadata: |
Heschi Kreinick | 71eba72 | 2021-09-08 17:03:04 -0400 | [diff] [blame] | 4 | namespace: prod |
Brad Fitzpatrick | e7b51e3 | 2017-04-03 13:03:23 -0700 | [diff] [blame] | 5 | name: pubsubhelper-deployment |
| 6 | spec: |
| 7 | replicas: 1 |
Carlos Amedee | 55fdac8 | 2021-08-31 15:11:22 -0400 | [diff] [blame] | 8 | selector: |
| 9 | matchLabels: |
| 10 | app: pubsubhelper |
Brad Fitzpatrick | e7b51e3 | 2017-04-03 13:03:23 -0700 | [diff] [blame] | 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: pubsubhelper |
Jess Frazelle | cb567ea | 2017-07-17 11:19:37 -0400 | [diff] [blame] | 15 | annotations: |
| 16 | container.seccomp.security.alpha.kubernetes.io/pubsubhelper: docker/default |
| 17 | container.apparmor.security.beta.kubernetes.io/pubsubhelper: runtime/default |
Brad Fitzpatrick | e7b51e3 | 2017-04-03 13:03:23 -0700 | [diff] [blame] | 18 | spec: |
Heschi Kreinick | 71eba72 | 2021-09-08 17:03:04 -0400 | [diff] [blame] | 19 | serviceAccountName: pubsubhelper |
Brad Fitzpatrick | e7b51e3 | 2017-04-03 13:03:23 -0700 | [diff] [blame] | 20 | containers: |
| 21 | - name: pubsubhelper |
Andrew Bonventre | 6573edf | 2017-09-12 15:43:10 -0400 | [diff] [blame] | 22 | image: gcr.io/symbolic-datum-552/pubsubhelper:latest |
Brad Fitzpatrick | a0bc737 | 2017-04-04 23:12:24 +0000 | [diff] [blame] | 23 | imagePullPolicy: Always |
Heschi Kreinick | 109ac0b | 2021-10-26 17:14:46 -0400 | [diff] [blame] | 24 | command: ["/pubsubhelper", "-listen-http=:80", "-listen-https-autocert=:443", "-autocert-bucket=golang-pubsubhelper-autocert"] |
Brad Fitzpatrick | e7b51e3 | 2017-04-03 13:03:23 -0700 | [diff] [blame] | 25 | ports: |
| 26 | - containerPort: 25 |
| 27 | - containerPort: 80 |
| 28 | - containerPort: 443 |
| 29 | resources: |
| 30 | requests: |
| 31 | cpu: "1" |
| 32 | memory: "1Gi" |
| 33 | limits: |
| 34 | memory: "2Gi" |
Heschi Kreinick | 9c47891 | 2021-10-13 16:23:53 -0400 | [diff] [blame] | 35 | --- |
| 36 | apiVersion: v1 |
| 37 | kind: Service |
| 38 | metadata: |
| 39 | namespace: prod |
| 40 | name: pubsubhelper |
| 41 | spec: |
| 42 | ports: |
| 43 | - port: 25 |
| 44 | targetPort: 25 |
| 45 | name: smtp |
| 46 | - port: 80 |
| 47 | targetPort: 80 |
| 48 | name: http |
| 49 | - port: 443 |
| 50 | targetPort: 443 |
| 51 | name: https |
| 52 | selector: |
| 53 | app: pubsubhelper |
| 54 | type: LoadBalancer |
| 55 | loadBalancerIP: 35.184.237.80 |