forked from YOURLS/YOURLS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyourls.yaml
More file actions
98 lines (98 loc) · 2.48 KB
/
yourls.yaml
File metadata and controls
98 lines (98 loc) · 2.48 KB
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
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: yourls
name: yourls
spec:
ports:
- name: "80"
port: 80
targetPort: 80
selector:
io.kompose.service: yourls
status:
loadBalancer: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: yourls
name: yourls
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: yourls
strategy:
type: Recreate
template:
metadata:
labels:
io.kompose.service: yourls
spec:
containers:
- env:
- name: YOURLS_DB_PASS
value: password
- name: YOURLS_PASS
value: password
- name: YOURLS_SITE
value: http://localhost
- name: YOURLS_USER
value: username
image: yourls
name: yourls
ports:
- containerPort: 80
resources: {}
volumeMounts:
- name: yourls-config-php
mountPath: /var/www/html/user/config.php
subPath: config.php
- name: yourls-index-php
mountPath: /var/www/html/index.php
subPath: index.php
- name: beanworks-api-request
mountPath: /var/www/html/user/plugins/beanworks-api-request/plugin.php
subPath: plugin.php
- name: domain-limiter
mountPath: /var/www/html/user/plugins/domain-limiter/plugin.php
subPath: plugin.php
- name: fallback-url
mountPath: /var/www/html/user/plugins/fallback-url/plugin.php
subPath: plugin.php
restartPolicy: Always
volumes:
- name: yourls-config-php
configMap:
name: yourls
items:
- key: config.php
path: config.php
- name: yourls-index-php
configMap:
name: yourls
items:
- key: index.php
path: index.php
- name: beanworks-api-request
configMap:
name: beanworks-api-request
items:
- key: plugin.php
path: plugin.php
- name: domain-limiter
configMap:
name: domain-limiter
items:
- key: plugin.php
path: plugin.php
- name: fallback-url
configMap:
name: fallback-url
items:
- key: plugin.php
path: plugin.php
status: {}