-
Notifications
You must be signed in to change notification settings - Fork 1
/
values.yml
62 lines (52 loc) · 1.53 KB
/
values.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
image:
repository: 9mine/9mine-digital-ocean-fs
tag: "master"
pullPolicy: Always
initContainerImage:
repository: 9mine/execfuse-jinja2
tag: "master"
pullPolicy: Always
securityContext:
privileged: true
capabilities:
add:
- SYS_ADMIN
service:
type: ClusterIP
port: 3370
ClusterIPRange:
from: 3371
to: 3390
description: "DigitalOcean"
fs: |
{% filter indent() -%}{% include 'fs.yml'%}
{%- endfilter %}
profile: |
echo --- start of profile loading ---
load file2chan
load std
ndb/cs
for host_var in `{ os env } { '{'$host_var'}' }
dir = $EXPORT_PATH
port = $NINEP_PUBLIC_PORT
echo $NINEP_PUBLIC_HOST > /dev/sysname
test -d /mnt/registry || mkdir -p /mnt/registry
mount -A tcp!registry!registry /mnt/registry
DO_DIR = /tmp/do
test -d $DO_DIR || mkdir -p $DO_DIR
load mpexpr
fs_port = ${expr $NINEP_PUBLIC_PORT 1 +}
file2chan $DO_DIR^/do {} {
load mpexpr
var=${expr 10 rand}
echo new id is $var
echo hostname is `{os hostname}
(do_token) = `{echo ${rget data}}
`{os /bin/bash -c 'mkdir -p /accounts/'}
`{os /bin/bash -c 'echo '^$do_token^' > /accounts/'^$var}
grid/reglisten -A -r description 'user id is '^$var tcp!*!^$fs_port { export $dir^/^$var & } &
fs_port=${expr $fs_port 1 +}
}
grid/reglisten -A -r description ${quote $NINEP_DESCRIPTION} 'tcp!*!'^$port { export $DO_DIR & }
test -n $status && os pkill -9 emu-g
echo --- end of profile loading ---