-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_k8s.yml
More file actions
45 lines (45 loc) · 890 Bytes
/
app_k8s.yml
File metadata and controls
45 lines (45 loc) · 890 Bytes
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
kind: Service
apiVersion: v1
metadata:
name: ${PROJECT_NAME}
spec:
selector:
app: ${PROJECT_NAME}
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: ${PROJECT_NAME}
labels:
app: ${PROJECT_NAME}
spec:
replicas: 2
selector:
matchLabels:
app: ${PROJECT_NAME}
template:
metadata:
labels:
app: ${PROJECT_NAME}
spec:
containers:
- name: ${PROJECT_NAME}
image: eu.gcr.io/${GOOGLE_PROJECT_ID}/${PROJECT_NAME}:${CIRCLE_SHA1}
env:
- name: NODE_ENV
value: "production"
- name: SECRET
value: "examplesecret"
- name: PORT
value: "80"
- name: SALT_WORK_FACTOR
value: "10"
ports:
- name: http
containerPort: 80
protocol: TCP