k8s: fixes and formating
- Add checkmk secrets example - space-tab fixes (linter) - switcher kener redis to statefulset - disabled netronome voulme mount (not needed). postgres statefulset instead - switched naio to 8888 port (traefik port conflict) - changed nextcloud ips and ports to prod
This commit is contained in:
1 parent
17b2dfdc2e
commit
d85b3f02f5
8 files changed
+217
-176
No files matched your search
@@ -7,9 +7,9 @@ spec:
|
||||
selector:
|
||||
app: netronome
|
||||
ports:
|
||||
- port: 7575
|
||||
protocol: TCP
|
||||
targetPort: 7575
|
||||
- port: 7575
|
||||
protocol: TCP
|
||||
targetPort: 7575
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
@@ -29,49 +29,30 @@ spec:
|
||||
app: netronome
|
||||
spec:
|
||||
containers:
|
||||
- name: netronome
|
||||
image: ghcr.io/autobrr/netronome:latest
|
||||
ports:
|
||||
- name: netronome-port
|
||||
protocol: TCP
|
||||
containerPort: 7575
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: netronome-config
|
||||
env:
|
||||
- name: NETRONOME__DB_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: netronome-secret
|
||||
key: NETRONOME__DB_USER
|
||||
- name: NETRONOME__DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: netronome-secret
|
||||
key: NETRONOME__DB_PASSWORD
|
||||
resources:
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
cpu: "1000m"
|
||||
volumeMounts:
|
||||
- name: netronome-data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: netronome-data
|
||||
persistentVolumeClaim:
|
||||
claimName: netronome-pvc
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: netronome-pvc
|
||||
namespace: netronome
|
||||
spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
- name: netronome
|
||||
image: ghcr.io/autobrr/netronome:latest
|
||||
ports:
|
||||
- name: netronome-port
|
||||
protocol: TCP
|
||||
containerPort: 7575
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: netronome-config
|
||||
env:
|
||||
- name: NETRONOME__DB_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: netronome-secrets
|
||||
key: NETRONOME__DB_USER
|
||||
- name: NETRONOME__DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: netronome-secrets
|
||||
key: NETRONOME__DB_PASSWORD
|
||||
resources:
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
cpu: "1000m"
|
||||
Reference in new issue
Block a user