forked from rejahrehim/kubernates-outline-civo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutline-pod.yaml
80 lines (80 loc) · 2.21 KB
/
outline-pod.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
apiVersion: v1
kind: Pod
metadata:
namespace: outline
name: shadowbox-manager
labels:
app: shadowbox-manager
spec:
initContainers:
- name: install
image: busybox
command: ["/bin/sh"]
args: ["-c", "touch /tmp/outline-ss-server/config.yml; echo '{\"rollouts\":[{\"id\":\"single-port\",\"enabled\":true}],\"portForNewAccessKeys\":8090}' > /tmp/shadowbox_server_config.json; if [ ! -f /tmp/shadowbox_config.json ]; then echo 'USER CONFIG NOT FOUND'; echo '{\"defaultPort\":8090,\"accessKeys\":[],\"nextId\":0}' > /tmp/shadowbox_config.json; fi"]
volumeMounts:
- name: shadowbox-config
mountPath: /tmp
containers:
- name: shadowbox-manager
image: rejahrehim/outline:latest
env:
- name: LOG_LEVEL
value: "debug"
- name: SB_API_PREFIX
value: TestApiPrefix
- name: SB_CERTIFICATE_FILE
value: "/tmp/shadowbox-selfsigned-dev.crt"
- name: SB_PRIVATE_KEY_FILE
value: "/tmp/shadowbox-selfsigned-dev.key"
- name: SB_API_PORT
value: "8081"
- name: SB_PUBLIC_IP
value: "xxx.xxx.xxx.xxx" #Server LB static IP
volumeMounts:
- name: shadowbox-config
mountPath: /root/shadowbox/persisted-state
- name: server-config-volume
mountPath: /cache
- name: tls
mountPath: /tmp/shadowbox-selfsigned-dev.crt
subPath: shadowbox-selfsigned-dev.crt
- name: tls
mountPath: /tmp/shadowbox-selfsigned-dev.key
subPath: shadowbox-selfsigned-dev.key
ports:
- containerPort: 80
- containerPort: 8081
volumes:
- name: server-config-volume
emptyDir: {}
- name: shadowbox-config
persistentVolumeClaim:
claimName: outline-pvc
- name: tls
secret:
secretName: shadowbox-tls
items:
- key: tls.crt
path: shadowbox-selfsigned-dev.crt
- key: tls.key
path: shadowbox-selfsigned-dev.key
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
labels:
app: shadowbox-manager
namespace: outline
name: shadowbox-manager-tcp-service
spec:
type: LoadBalancer
loadBalancerIP: "xxx.xxx.xxx.xxx" #Manager LB static IP (GCP)
ports:
- name: out
port: 8081
targetPort: 8081
protocol: TCP
selector:
app: shadowbox-manager