Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 92b7649d37 | |||
| 4ceb90a24c | |||
| 9b5eaf9cd9 | |||
| 2f4244985a |
@@ -1,48 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: n8n
|
|
||||||
namespace: apps
|
|
||||||
labels:
|
|
||||||
app: n8n
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: n8n
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: n8n
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: n8n
|
|
||||||
image: n8nio/n8n:1.57.0
|
|
||||||
ports:
|
|
||||||
- containerPort: 5678
|
|
||||||
env:
|
|
||||||
- name: N8N_HOST
|
|
||||||
value: "n8n.khalisio.com"
|
|
||||||
- name: N8N_PROTOCOL
|
|
||||||
value: "https"
|
|
||||||
- name: WEBHOOK_URL
|
|
||||||
value: "https://n8n.khalisio.com/"
|
|
||||||
- name: N8N_ENCRYPTION_KEY
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: n8n-secret
|
|
||||||
key: N8N_ENCRYPTION_KEY
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 256Mi
|
|
||||||
limits:
|
|
||||||
cpu: 1000m
|
|
||||||
memory: 1Gi
|
|
||||||
volumeMounts:
|
|
||||||
- name: n8n-data
|
|
||||||
mountPath: /home/node/.n8n
|
|
||||||
volumes:
|
|
||||||
- name: n8n-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: n8n-data
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
apiVersion: external-secrets.io/v1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: n8n-secret
|
|
||||||
namespace: apps
|
|
||||||
spec:
|
|
||||||
refreshInterval: 1h
|
|
||||||
secretStoreRef:
|
|
||||||
name: orion-vault
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
target:
|
|
||||||
name: n8n-secret
|
|
||||||
creationPolicy: Owner
|
|
||||||
data:
|
|
||||||
- secretKey: N8N_SECRET_KEY
|
|
||||||
remoteRef:
|
|
||||||
key: n8n
|
|
||||||
property: N8N_SECRET_KEY
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
apiVersion: traefik.io/v1alpha1
|
|
||||||
kind: IngressRoute
|
|
||||||
metadata:
|
|
||||||
name: n8n
|
|
||||||
namespace: apps
|
|
||||||
spec:
|
|
||||||
entryPoints:
|
|
||||||
- websecure
|
|
||||||
routes:
|
|
||||||
- match: Host(`n8n.khalisio.com`)
|
|
||||||
kind: Rule
|
|
||||||
services:
|
|
||||||
- name: n8n
|
|
||||||
port: 80
|
|
||||||
tls:
|
|
||||||
secretName: n8n-tls
|
|
||||||
certResolver: letsencrypt
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: n8n
|
|
||||||
namespace: apps
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: n8n
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 5678
|
|
||||||
type: ClusterIP
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: transmission-config
|
|
||||||
namespace: media
|
|
||||||
data:
|
|
||||||
peer-port: "0"
|
|
||||||
@@ -2,7 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: transmission
|
name: transmission
|
||||||
namespace: apps
|
namespace: media
|
||||||
labels:
|
labels:
|
||||||
app: transmission
|
app: transmission
|
||||||
spec:
|
spec:
|
||||||
@@ -10,58 +10,104 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: transmission
|
app: transmission
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: transmission
|
app: transmission
|
||||||
spec:
|
spec:
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_ADMIN
|
||||||
containers:
|
containers:
|
||||||
|
- name: gluetun
|
||||||
|
image: qmcgaw/gluetun:latest
|
||||||
|
env:
|
||||||
|
- name: VPN_SERVICE_PROVIDER
|
||||||
|
value: protonvpn
|
||||||
|
- name: REGION
|
||||||
|
value: "New York"
|
||||||
|
- name: OPENVPN_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: transmission-vpn-secret
|
||||||
|
key: VPN_USERNAME
|
||||||
|
- name: OPENVPN_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: transmission-vpn-secret
|
||||||
|
key: VPN_PASSWORD
|
||||||
|
- name: WIREGUARD_PRIVATE_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: transmission-vpn-secret
|
||||||
|
key: WIREGUARD_PRIVATE_KEY
|
||||||
|
- name: FIREWALL_OUTBOUND_SUBNET
|
||||||
|
value: ""
|
||||||
|
- name: UPNP_ENABLED
|
||||||
|
value: "true"
|
||||||
|
- name: DOT
|
||||||
|
value: "true"
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /gluetun
|
||||||
- name: transmission
|
- name: transmission
|
||||||
image: lscr.io/linuxserver/transmission:latest
|
image: lscr.io/linuxserver/transmission:latest
|
||||||
ports:
|
|
||||||
- name: web
|
|
||||||
containerPort: 9091
|
|
||||||
protocol: TCP
|
|
||||||
- name: peer
|
|
||||||
containerPort: 51413
|
|
||||||
protocol: TCP
|
|
||||||
- name: peer-udp
|
|
||||||
containerPort: 51413
|
|
||||||
protocol: UDP
|
|
||||||
env:
|
env:
|
||||||
- name: PUID
|
- name: PUID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Etc/UTC"
|
value: "America/New_York"
|
||||||
- name: TRANSMISSION_WEB_HOME
|
- name: USER
|
||||||
value: "/web/":"
|
valueFrom:
|
||||||
volumeMounts:
|
secretKeyRef:
|
||||||
- name: config
|
name: transmission-vpn-secret
|
||||||
mountPath: /config
|
key: TRANS_USERNAME
|
||||||
- name: data
|
- name: PASS
|
||||||
mountPath: /data
|
valueFrom:
|
||||||
- name: gluetun
|
secretKeyRef:
|
||||||
image: qmcgaw/gluetun:latest
|
name: transmission-vpn-secret
|
||||||
env:
|
key: TRANS_PASSWORD
|
||||||
- name: VPN_SERVICE_PROVIDER
|
- name: WHITELIST
|
||||||
value: "protonvpn"
|
value: "*"
|
||||||
- name: VPN_TYPE
|
- name: HOST_WHITELIST
|
||||||
value: "wireguard"
|
value: "transmission.khalis.corp"
|
||||||
|
- name: PEER_PORT
|
||||||
|
value: "51413"
|
||||||
|
- name: NVM_CONFIGDIR
|
||||||
|
value: "/config"
|
||||||
|
- name: NVM_DATAROOT
|
||||||
|
value: "/downloads"
|
||||||
ports:
|
ports:
|
||||||
- name: https
|
- containerPort: 9091
|
||||||
containerPort: 443
|
name: http
|
||||||
|
- containerPort: 51413
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
name: peer-tcp
|
||||||
|
- containerPort: 51413
|
||||||
|
protocol: UDP
|
||||||
|
name: peer-udp
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
- name: media
|
||||||
|
mountPath: /downloads
|
||||||
|
- name: downloads
|
||||||
|
mountPath: /downloads
|
||||||
|
- name: watch
|
||||||
|
mountPath: /watch
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: transmission-config-claim
|
claimName: transmission-config
|
||||||
- name: data
|
- name: media
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: transmission-data-claim
|
claimName: media-data
|
||||||
|
- name: downloads
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: media-data
|
||||||
|
- name: watch
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: media-data
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ metadata:
|
|||||||
namespace: media
|
namespace: media
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: transmission.khalis.corp
|
- host: transmission.khalis.corp
|
||||||
@@ -17,4 +16,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: transmission
|
name: transmission
|
||||||
port:
|
port:
|
||||||
name: http
|
number: 9091
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: n8n-data
|
name: transmission-config
|
||||||
namespace: apps
|
namespace: media
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ReadWriteOnce]
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
storageClassName: longhorn
|
storageClassName: longhorn
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 5Gi
|
storage: 10Gi
|
||||||
@@ -7,7 +7,16 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: transmission
|
app: transmission
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- protocol: TCP
|
||||||
port: 9091
|
port: 9091
|
||||||
targetPort: http
|
targetPort: 9091
|
||||||
|
name: http
|
||||||
|
- protocol: TCP
|
||||||
|
port: 51413
|
||||||
|
targetPort: 51413
|
||||||
|
name: peer-tcp
|
||||||
|
- protocol: UDP
|
||||||
|
port: 51413
|
||||||
|
targetPort: 51413
|
||||||
|
name: peer-udp
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: tailscale
|
|
||||||
labels:
|
|
||||||
app: tailscale
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
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