Compare commits
16 Commits
auto-updat
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7aaa3e4a5 | ||
|
|
5f882c7beb | ||
|
|
72cf9902d4 | ||
|
|
a4b2eb8ab9 | ||
|
|
80b7b0a7f7 | ||
|
|
ecd475e83d | ||
| 69aed3fe23 | |||
|
|
d74479c935 | ||
|
|
e5ad65b63b | ||
|
|
0b143959b9 | ||
|
|
d35da03726 | ||
|
|
d5a666ac62 | ||
| cb2a4384f3 | |||
| 9ec3e8ef56 | |||
|
|
02986ae5b6 | ||
|
|
be766e24c8 |
@@ -1,9 +1,11 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
# Updated: Fixed n8n volume permissions issue
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- external-secrets.yaml
|
- external-secrets.yaml
|
||||||
- storage.yaml
|
- storage.yaml
|
||||||
|
- rbac.yaml
|
||||||
|
|
||||||
helmCharts:
|
helmCharts:
|
||||||
- name: n8n
|
- name: n8n
|
||||||
@@ -13,16 +15,9 @@ helmCharts:
|
|||||||
namespace: n8n
|
namespace: n8n
|
||||||
valuesFile: values-n8n.yaml
|
valuesFile: values-n8n.yaml
|
||||||
includeCRDs: true
|
includeCRDs: true
|
||||||
- name: searxng
|
|
||||||
repo: https://unknowniq.github.io/helm-charts/
|
|
||||||
version: 0.1.3
|
|
||||||
releaseName: searxng
|
|
||||||
namespace: n8n
|
|
||||||
valuesFile: values-searxng.yaml
|
|
||||||
includeCRDs: true
|
|
||||||
- name: yacy
|
- name: yacy
|
||||||
repo: https://github.com/yacy/yacy_search_server.git
|
repo: https://gt.hexor.cy/api/packages/ab/helm
|
||||||
path: charts/yacy
|
version: 0.1.2
|
||||||
releaseName: yacy
|
releaseName: yacy
|
||||||
namespace: n8n
|
namespace: n8n
|
||||||
valuesFile: values-yacy.yaml
|
valuesFile: values-yacy.yaml
|
||||||
|
|||||||
71
k8s/apps/n8n/rbac.yaml
Normal file
71
k8s/apps/n8n/rbac.yaml
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: n8n-readonly
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources:
|
||||||
|
- pods
|
||||||
|
- services
|
||||||
|
- endpoints
|
||||||
|
- persistentvolumeclaims
|
||||||
|
- persistentvolumes
|
||||||
|
- configmaps
|
||||||
|
- secrets
|
||||||
|
- nodes
|
||||||
|
- namespaces
|
||||||
|
- events
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: ["apps"]
|
||||||
|
resources:
|
||||||
|
- deployments
|
||||||
|
- replicasets
|
||||||
|
- statefulsets
|
||||||
|
- daemonsets
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: ["networking.k8s.io"]
|
||||||
|
resources:
|
||||||
|
- ingresses
|
||||||
|
- networkpolicies
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: ["extensions"]
|
||||||
|
resources:
|
||||||
|
- ingresses
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: ["autoscaling"]
|
||||||
|
resources:
|
||||||
|
- horizontalpodautoscalers
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: ["batch"]
|
||||||
|
resources:
|
||||||
|
- jobs
|
||||||
|
- cronjobs
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: ["metrics.k8s.io"]
|
||||||
|
resources:
|
||||||
|
- pods
|
||||||
|
- nodes
|
||||||
|
verbs: ["get", "list"]
|
||||||
|
- apiGroups: ["storage.k8s.io"]
|
||||||
|
resources:
|
||||||
|
- storageclasses
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: ["policy"]
|
||||||
|
resources:
|
||||||
|
- poddisruptionbudgets
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: n8n-readonly
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: n8n-readonly
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: n8n-readonly
|
||||||
|
namespace: n8n
|
||||||
@@ -17,6 +17,32 @@ main:
|
|||||||
existingClaim: n8n-home
|
existingClaim: n8n-home
|
||||||
mountPath: /home/node/.n8n
|
mountPath: /home/node/.n8n
|
||||||
|
|
||||||
|
podSecurityContext:
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
runAsNonRoot: true
|
||||||
|
|
||||||
|
# Configure health probes for slow startup
|
||||||
|
main:
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 120 # Дать время на запуск
|
||||||
|
periodSeconds: 30
|
||||||
|
timeoutSeconds: 10
|
||||||
|
failureThreshold: 6
|
||||||
|
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz/readiness
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 10
|
||||||
|
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
mode: regular
|
mode: regular
|
||||||
|
|
||||||
@@ -28,6 +54,12 @@ redis:
|
|||||||
|
|
||||||
existingEncryptionKeySecret: credentials
|
existingEncryptionKeySecret: credentials
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
create: true
|
||||||
|
automount: true
|
||||||
|
annotations: {}
|
||||||
|
name: "n8n-readonly"
|
||||||
|
|
||||||
externalPostgresql:
|
externalPostgresql:
|
||||||
existingSecret: credentials
|
existingSecret: credentials
|
||||||
host: "psql.psql.svc"
|
host: "psql.psql.svc"
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
config:
|
|
||||||
general:
|
|
||||||
instance_name: "HexorSearXNG"
|
|
||||||
debug: true
|
|
||||||
server:
|
|
||||||
limiter: false
|
|
||||||
public_instance: false
|
|
||||||
method: "POST"
|
|
||||||
search:
|
|
||||||
safe_search: 0
|
|
||||||
|
|
||||||
extraConfig:
|
|
||||||
botdetection:
|
|
||||||
ip_lists:
|
|
||||||
pass_ip:
|
|
||||||
- '0.0.0.0/0'
|
|
||||||
- '::0/0'
|
|
||||||
ip_limit:
|
|
||||||
filter_link_local: false
|
|
||||||
link_token: false
|
|
||||||
valkey:
|
|
||||||
enabled: true
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
|
||||||
@@ -1,61 +1,24 @@
|
|||||||
replicaCount: 1
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||||
image:
|
|
||||||
repository: yacy/yacy_search_server
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
tag: "latest"
|
|
||||||
|
|
||||||
nameOverride: ""
|
|
||||||
fullnameOverride: ""
|
|
||||||
|
|
||||||
serviceAccount:
|
|
||||||
create: true
|
|
||||||
automount: true
|
|
||||||
annotations: {}
|
|
||||||
name: ""
|
|
||||||
|
|
||||||
podAnnotations: {}
|
|
||||||
podLabels: {}
|
|
||||||
|
|
||||||
podSecurityContext:
|
|
||||||
runAsNonRoot: true
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
fsGroup: 1000
|
|
||||||
|
|
||||||
securityContext:
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
capabilities:
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
readOnlyRootFilesystem: false
|
|
||||||
|
|
||||||
service:
|
|
||||||
type: ClusterIP
|
|
||||||
port: 8090
|
|
||||||
|
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 2Gi
|
memory: 2Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
accessMode: ReadWriteOnce
|
|
||||||
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
|
||||||
|
|
||||||
yacy:
|
yacy:
|
||||||
adminPassword: "yacy123"
|
|
||||||
initCrawlURLs:
|
|
||||||
- "https://www.example.com/"
|
|
||||||
memory: "Xmx1024m"
|
|
||||||
network:
|
network:
|
||||||
mode: "intranet" # standalone mode for local usage
|
mode: "intranet"
|
||||||
|
config:
|
||||||
|
network.unit.bootstrap.seedlist: ""
|
||||||
|
network.unit.remotecrawl: "false"
|
||||||
|
network.unit.dhtredundancy.junior: "1"
|
||||||
|
network.unit.dhtredundancy.senior: "1"
|
||||||
|
index.receive.allow: "false"
|
||||||
|
index.distribute.allow: "false"
|
||||||
|
crawl.response.timeout: "10000"
|
||||||
@@ -10,5 +10,11 @@ parameters:
|
|||||||
reclaimPolicy: Retain
|
reclaimPolicy: Retain
|
||||||
volumeBindingMode: Immediate
|
volumeBindingMode: Immediate
|
||||||
mountOptions:
|
mountOptions:
|
||||||
- vers=4
|
- nfsvers=4.1
|
||||||
- hard
|
- rsize=1048576
|
||||||
|
- wsize=1048576
|
||||||
|
- timeo=14
|
||||||
|
- intr
|
||||||
|
- bg
|
||||||
|
- soft
|
||||||
|
- noatime
|
||||||
|
|||||||
Reference in New Issue
Block a user