forked from joemccann/dillinger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdillinger.k8s.production.yml
99 lines (99 loc) · 2.77 KB
/
dillinger.k8s.production.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
apiVersion: v1
kind: Namespace
metadata:
name: dillinger-prod
---
apiVersion: v1
kind: ServiceList
items:
- apiVersion: v1
kind: Service
metadata:
namespace: dillinger-prod
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-prod
labels:
app: web
name: web-deployment
spec:
replicas: 4
revisionHistoryLimit: 1
template:
metadata:
labels:
app: web
spec:
containers:
- image: joemccann/dillinger:3.22.3
name: web
env:
- name: NSOLID_APPNAME
value: app-dillinger:3.22.3
- name: NSOLID_COMMAND
value: "storage.nsolid:9001"
- name: NSOLID_DATA
value: "storage.nsolid:9002"
- name: NSOLID_BULK
value: "storage.nsolid:9003"
- name: NSOLID_TAGS
value: "gcp-production,nsolid-boron-v2.1.0"
ports:
- containerPort: 8080
name: http-server
volumeMounts:
- mountPath: /configs/dropbox/
name: dropbox-config
- mountPath: /configs/github/
name: github-config
- mountPath: /configs/onedrive/
name: onedrive-config
- mountPath: /configs/googledrive/
name: googledrive-config
- mountPath: /configs/sponsored/
name: sponsored-config
- mountPath: /configs/googleanalytics/
name: googleanalytics-config
- mountPath: /configs/medium/
name: medium-config
- mountPath: /configs/bitbucket/
name: bitbucket-config
volumes:
- name: dropbox-config
secret:
secretName: dropbox-config
- name: googledrive-config
secret:
secretName: googledrive-config
- name: github-config
secret:
secretName: github-config
- name: onedrive-config
secret:
secretName: onedrive-config
- name: sponsored-config
secret:
secretName: sponsored-config
- name: medium-config
secret:
secretName: medium-config
- name: googleanalytics-config
secret:
secretName: googleanalytics-config
- name: bitbucket-config
secret:
secretName: bitbucket-config