Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 669aa54ad4 | |||
| 43976cb1a1 | |||
| c6f3eab1d8 | |||
| 4ab4642c9c | |||
| 27fbe1ecac | |||
| 6f9c6c028e | |||
| 782c787430 | |||
| 7b6a43318b | |||
| ccd5b4474e | |||
| 73e90cecbb | |||
| ea5a452327 | |||
| 52388ec19f |
@@ -1,4 +1,4 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: n8n-secret
|
||||
@@ -6,13 +6,13 @@ metadata:
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
name: vault
|
||||
name: orion-vault
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: n8n-secret
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: N8N_ENCRYPTION_KEY
|
||||
- secretKey: N8N_SECRET_KEY
|
||||
remoteRef:
|
||||
key: secret/data/Talos Cluster/apps/n8n
|
||||
property: N8N_ENCRYPTION_KEY
|
||||
key: n8n
|
||||
property: N8N_SECRET_KEY
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: transmission
|
||||
namespace: media
|
||||
labels:
|
||||
app: transmission
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: transmission
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: transmission
|
||||
spec:
|
||||
containers:
|
||||
- name: gluetun
|
||||
image: ghcr.io/qmcgaw/gluetun:v3.40.0
|
||||
env:
|
||||
- name: OPENVPN_PROVIDER
|
||||
value: "PROTONVPN"
|
||||
- name: OPENVPN_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: transmission-vpn-secret
|
||||
key: username
|
||||
- name: OPENVPN_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: transmission-vpn-secret
|
||||
key: password
|
||||
- name: SERVER_COUNTRIES
|
||||
value: "US"
|
||||
- name: FIREWALL_ENABLED
|
||||
value: "off"
|
||||
- name: DOT_ENABLED
|
||||
value: "true"
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8000
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- name: transmission
|
||||
image: lscr.io/linuxserver/transmission:latest
|
||||
env:
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: TZ
|
||||
value: "America/New_York"
|
||||
- name: USER
|
||||
value: "admin"
|
||||
- name: PASS
|
||||
value: "admin"
|
||||
- name: TRANSMISSION_WEB_HOME
|
||||
value: "/combui"
|
||||
- name: PEER_PORT
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: transmission-config
|
||||
key: peer-port
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 9091
|
||||
- name: peer
|
||||
containerPort: 0
|
||||
protocol: TCP
|
||||
- name: peer-udp
|
||||
containerPort: 0
|
||||
protocol: UDP
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- name: downloads
|
||||
mountPath: /downloads
|
||||
volumes:
|
||||
- name: config
|
||||
emptyDir: {}
|
||||
- name: downloads
|
||||
persistentVolumeClaim:
|
||||
claimName: media-data
|
||||
@@ -0,0 +1,36 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: tailscale-operator
|
||||
namespace: tailscale
|
||||
labels:
|
||||
app: tailscale-operator
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: tailscale-operator
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: tailscale-operator
|
||||
spec:
|
||||
serviceAccountName: tailscale-operator
|
||||
containers:
|
||||
- name: tailscale-operator
|
||||
image: ghcr.io/tailscale/tailscale-operator:v1.78.0
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: TS_AUTH_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: tailscale-auth
|
||||
key: TS_AUTH_KEY
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
@@ -0,0 +1,18 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: tailscale-auth
|
||||
namespace: tailscale
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
name: orion-vault
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: tailscale-auth
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: TS_AUTH_KEY
|
||||
remoteRef:
|
||||
key: secret/tailscale
|
||||
property: TS_AUTH_KEY
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: tailscale
|
||||
labels:
|
||||
app: tailscale
|
||||
@@ -0,0 +1,33 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: tailscale-operator
|
||||
namespace: tailscale
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: tailscale-operator
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["pods", "services", "secrets", "configmaps", "nodes"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["networking.k8s.io"]
|
||||
resources: ["ingresses"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
- apiGroups: ["tailscale.com"]
|
||||
resources: ["*"]
|
||||
verbs: ["*"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: tailscale-operator
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: tailscale-operator
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: tailscale-operator
|
||||
namespace: tailscale
|
||||
Reference in New Issue
Block a user