charts: tailscale-proxy
diff --git a/charts/tailscale/.helmignore b/charts/tailscale/.helmignore
new file mode 100644
index 0000000..0e8a0eb
--- /dev/null
+++ b/charts/tailscale/.helmignore
@@ -0,0 +1,23 @@
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*.orig
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
+.vscode/
diff --git a/charts/tailscale/Chart.yaml b/charts/tailscale/Chart.yaml
new file mode 100644
index 0000000..a87d9d7
--- /dev/null
+++ b/charts/tailscale/Chart.yaml
@@ -0,0 +1,6 @@
+apiVersion: v2
+name: tailscale-proxy
+description: A Helm chart to run tailscale node
+type: application
+version: 0.0.1
+appVersion: "0.0.1"
diff --git a/charts/tailscale/templates/install.yaml b/charts/tailscale/templates/install.yaml
new file mode 100644
index 0000000..c893760
--- /dev/null
+++ b/charts/tailscale/templates/install.yaml
@@ -0,0 +1,52 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  name: tailscale
+  namespace: {{ .Release.Namespace }}
+  annotations:
+    helm.sh/resource-policy: keep
+spec:
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 1Gi
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: tailscale
+  namespace: {{ .Release.Namespace }}
+spec:
+  selector:
+    matchLabels:
+      app: tailscale
+  replicas: 1
+  template:
+    metadata:
+      labels:
+        app: tailscale
+    spec:
+      volumes:
+      - name: tailscale
+        persistentVolumeClaim:
+          claimName: tailscale
+      containers:
+      - name: tailscale
+        image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
+        imagePullPolicy: {{ .Values.image.pullPolicy }}
+        securityContext:
+          privileged: true
+          capabilities:
+            add:
+            - NET_ADMIN
+        env:
+        - name: TS_KUBE_SECRET
+          value: ""
+        - name: TS_STATE_DIR
+          value: /tailscale-state
+        - name: TS_EXTRA_ARGS
+          value: --hostname={{ .Values.hostname }} --login-server={{ .Values.loginServer }} --advertise-routes=192.168.0.0/24 # TODO(giolekva): routes should be configurable
+        volumeMounts:
+        - name: tailscale
+          mountPath: /tailscale-state
diff --git a/charts/tailscale/values.yaml b/charts/tailscale/values.yaml
new file mode 100644
index 0000000..98112ea
--- /dev/null
+++ b/charts/tailscale/values.yaml
@@ -0,0 +1,6 @@
+image:
+  repository: tailscale/tailscale
+  tag: v1.42.0
+  pullPolicy: IfNotPresent
+hostname: example-ingress
+loginServer: headscale.example.com