-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathdeploy.yaml
56 lines (56 loc) · 917 Bytes
/
deploy.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: v1
kind: Service
metadata:
name: boilerplay
labels:
app: boilerplay
spec:
ports:
- port: 80
targetPort: 9000
name: http
selector:
app: boilerplay
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: boilerplay
spec:
replicas: 2
template:
metadata:
labels:
app: boilerplay
spec:
containers:
- name: app
image: boilerplay/boilerplay:latest
ports:
- containerPort: 9000
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: boilerplay-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
spec:
rules:
- host: boilerplay.com
http:
paths:
- backend:
serviceName: boilerplay
servicePort: 9000
---
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: boilerplay
name: boilerplay-config
data:
application.conf: |
foo = "bar"
---