-
Notifications
You must be signed in to change notification settings - Fork 5
/
app.yaml
56 lines (56 loc) · 1.12 KB
/
app.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
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: my-app
labels:
app: app
name: app
spec:
replicas: 1
selector:
matchLabels:
app: app
strategy: {}
template:
metadata:
labels:
app: app
spec:
containers:
- env:
- name: NODE_ENV
valueFrom:
configMapKeyRef:
key: NODE_ENV
name: env
- name: CHOKIDAR_USEPOLLING
valueFrom:
configMapKeyRef:
key: CHOKIDAR_USEPOLLING
name: env
image: flavienb/reactjs-flask-ldap-boilerplate-app:latest
name: app
ports:
- containerPort: 3000
imagePullPolicy: Always
resources: {}
restartPolicy: Always
status: {}
---
apiVersion: v1
kind: Service
metadata:
namespace: my-app
labels:
app: app
name: app
spec:
ports:
- port: 3000 # Port accessible inside cluster
targetPort: 3000 # Port to forward to inside the pod
protocol: TCP
name: http
selector:
app: app
status:
loadBalancer: {}