-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathproduction.yaml
72 lines (72 loc) · 1.58 KB
/
production.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
namespace: buffer
name: publish-app
labels:
app: publish
service: app
track: stable
spec:
replicas: 2
minReadySeconds: 10
strategy:
rollingUpdate:
maxUnavailable: 1
template:
metadata:
labels:
app: publish
service: app
track: stable
spec:
containers:
- name: publish-app
image: bufferapp/buffer-publish:test-1
ports:
- containerPort: 80
# env:
# - name: SESSION_COOKIE_SECRET
# valueFrom:
# secretKeyRef:
# key: session-cookie-secret
# name: publish-app
# livenessProbe:
# httpGet:
# path: /health-check
# port: 8080
# initialDelaySeconds: 15
# timeoutSeconds: 1
resources:
requests:
cpu: 100m
memory: 50Mi
limits:
cpu: 100m
memory: 150Mi
imagePullSecrets:
- name: dhbufferapp
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: publish-app
namespace: buffer
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-west-2:980620087509:certificate/823c1d82-bbdd-4a3b-b1b3-e0a78e5ba6ff
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
labels:
app: publish
service: web
track: stable
spec:
ports:
- port: 443
targetPort: 80
protocol: TCP
name: https
selector:
app: publish
service: app
type: LoadBalancer