about summary refs log tree commit diff
path: root/bundles/golink
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2025-09-07 17:32:13 +0200
committerRobert Günzler <r@gnzler.io>2025-09-07 17:42:42 +0200
commit38be6c13f76e893cf47636257071b440dec0c5b2 (patch)
treef7ded3235a7e3362cbd1ed3d91523968fe0faf90 /bundles/golink
initial commit
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bundles/golink')
-rw-r--r--bundles/golink/files/kube.yaml30
-rw-r--r--bundles/golink/items.py7
-rw-r--r--bundles/golink/metadata.py5
3 files changed, 42 insertions, 0 deletions
diff --git a/bundles/golink/files/kube.yaml b/bundles/golink/files/kube.yaml
new file mode 100644
index 0000000..8ab2789
--- /dev/null
+++ b/bundles/golink/files/kube.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: Pod
+metadata:
+  name: golink
+  labels:
+    traefik.enable: false
+spec:
+  restartPolicy: Never
+  dnsPolicy: Default
+  securityContext:
+    # NOTE: required unless mounted directory is owned by 65532
+    runAsUser: 0
+  containers:
+    - name: golink
+      image: ghcr.io/tailscale/golink:main
+      volumeMounts:
+      - name: golink-data
+        mountPath: /home/nonroot
+      resources:
+        limits:
+          cpu: 20m
+          memory: 100Mi
+        requests:
+          cpu: 10m
+          memory: 50Mi
+  volumes:
+  - name: golink-data
+    hostPath:
+      path: /var/lib/golink
+      type: DirectoryOrCreate
diff --git a/bundles/golink/items.py b/bundles/golink/items.py
new file mode 100644
index 0000000..8f79a22
--- /dev/null
+++ b/bundles/golink/items.py
@@ -0,0 +1,7 @@
+files = {
+    "/etc/deployments/golink/kube.yaml": {
+        "content_type": "text",
+        "source": "kube.yaml",
+        "triggers": {"svc_s6rc:golink:restart"},
+    },
+}
diff --git a/bundles/golink/metadata.py b/bundles/golink/metadata.py
new file mode 100644
index 0000000..1fc3cef
--- /dev/null
+++ b/bundles/golink/metadata.py
@@ -0,0 +1,5 @@
+defaults = {
+    "containers": {
+        "golink": {},
+    },
+}