diff options
Diffstat (limited to 'bundles/golink/files')
| -rw-r--r-- | bundles/golink/files/kube.yaml | 9 | ||||
| -rw-r--r-- | bundles/golink/files/snapshot.json | 5 |
2 files changed, 11 insertions, 3 deletions
diff --git a/bundles/golink/files/kube.yaml b/bundles/golink/files/kube.yaml index 8ab2789..64b1614 100644 --- a/bundles/golink/files/kube.yaml +++ b/bundles/golink/files/kube.yaml @@ -5,6 +5,7 @@ metadata: labels: traefik.enable: false spec: + imagePullPolicy: Always restartPolicy: Never dnsPolicy: Default securityContext: @@ -13,6 +14,11 @@ spec: containers: - name: golink image: ghcr.io/tailscale/golink:main + args: + - --sqlitedb=/home/nonroot/golink.db + - --snapshot=/home/nonroot/snapshot.json + - --https=true + - --readonly=true volumeMounts: - name: golink-data mountPath: /home/nonroot @@ -20,9 +26,6 @@ spec: limits: cpu: 20m memory: 100Mi - requests: - cpu: 10m - memory: 50Mi volumes: - name: golink-data hostPath: diff --git a/bundles/golink/files/snapshot.json b/bundles/golink/files/snapshot.json new file mode 100644 index 0000000..b6757c6 --- /dev/null +++ b/bundles/golink/files/snapshot.json @@ -0,0 +1,5 @@ +## vim: ft=python +<%! from time import strftime as time %> +% for short, long in links.items(): +{"Short":"${short}","Long":"${long}","Owner":"robertgzr@github","Created":"${"%Y-%m-%dT%H:%M:%SZ" | time}","LastEdit":"${"%Y-%m-%dT%H:%M:%SZ" | time}"} +% endfor |