forked from joemccann/dillinger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dillinger.k8s.all.yml
54 lines (54 loc) · 1.13 KB
/
dillinger.k8s.all.yml
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
apiVersion: v1
kind: Namespace
metadata:
name: dillinger
---
apiVersion: v1
kind: ServiceList
items:
- apiVersion: v1
kind: Service
metadata:
namespace: dillinger
name: web
spec:
sessionAffinity: ClientIP
type: LoadBalancer
ports:
- port: 80
targetPort: 8080
selector:
app: web
---
apiVersion: extensions/v1beta1
kind: DeploymentList
items:
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
namespace: dillinger
labels:
app: web
name: web
spec:
replicas: 2
template:
metadata:
labels:
app: web
spec:
containers:
- image: joemccann/dillinger
name: web
env:
- name: NSOLID_APPNAME
value: dillinger
- name: NSOLID_HUB
value: "nsolid-registry.nsolid:2379"
- name: NSOLID_SOCKET
value: "8000"
- name: NSOLID_TAGS
value: "nsolid-v1.4.0"
ports:
- containerPort: 8080
name: http-server