Merge pull request #831 from 3dwardch3ng/infra/metallb

update service annotations for address pool and allow shared ip for m…
This commit is contained in:
2024-08-26 14:18:11 +10:00
committed by GitHub
9 changed files with 33 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ metadata:
namespace: adguard-home
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
metallb.universe.tf/allow-shared-ip: k3s-cluster-ips
labels:
app.kubernetes.io/name: adguard-home
spec:

View File

@@ -19,6 +19,7 @@ service:
ssh: 10022
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
metallb.universe.tf/allow-shared-ip: k3s-cluster-ips
ingress:
enabled: true
ingressClassName: "nginx"

View File

@@ -5,6 +5,7 @@ metadata:
namespace: homer
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
metallb.universe.tf/allow-shared-ip: k3s-cluster-ips
labels:
app.kubernetes.io/name: homer
spec:

View File

@@ -3,6 +3,9 @@ kind: Service
metadata:
name: qbittorrent
namespace: qbittorrent
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
metallb.universe.tf/allow-shared-ip: k3s-cluster-ips
labels:
app.kubernetes.io/name: qbittorrent
spec:

View File

@@ -23,6 +23,9 @@ service:
ports:
http: 8090
elastic: 9091
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
metallb.universe.tf/allow-shared-ip: k3s-cluster-ips
persistence:
enabled: true
storageClass: local-path

View File

@@ -13,6 +13,9 @@ service:
ports:
api: 19000
console: 19001
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
metallb.universe.tf/allow-shared-ip: k3s-cluster-ips
persistence:
existingClaim: "minio-pvc"
containerSecurityContext:

View File

@@ -22,6 +22,9 @@ startupProbe:
enabled: true
service:
type: LoadBalancer
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
metallb.universe.tf/allow-shared-ip: k3s-cluster-ips
persistence:
existingClaim: "mongodb-pvc"
persistentVolumeClaimRetentionPolicy:

View File

@@ -1,16 +1,16 @@
auth:
username: edward
database: edwarddb
existingSecret: "postgresql-secrets"
existingSecret: postgresql-secrets
secretKeys:
adminPasswordKey: postgres_password
userPasswordKey: password
replicationPasswordKey: replication_password
architecture: "replication"
architecture: replication
replication:
synchronousCommit: "on"
synchronousCommit: on
numSynchronousReplicas: 1
applicationName: "postgres_repl"
applicationName: postgres_repl
primary:
podSecurityContext:
fsGroup: 1000
@@ -18,9 +18,12 @@ primary:
runAsUser: 1000
runAsGroup: 1000
podLabels:
name: "postgresql-primary"
name: postgresql-primary
service:
type: "LoadBalancer"
type: LoadBalancer
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
metallb.universe.tf/allow-shared-ip: k3s-cluster-ips
persistence:
existingClaim: postgresql-primary-pvc
selector:
@@ -29,18 +32,21 @@ primary:
persistentVolumeClaimRetentionPolicy:
enabled: true
readReplicas:
name: "replica"
name: replica
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podLabels:
name: "postgresql-replica"
name: postgresql-replica
service:
type: "LoadBalancer"
type: LoadBalancer
ports:
postgresql: 5433
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
metallb.universe.tf/allow-shared-ip: k3s-cluster-ips
persistence:
existingClaim: postgresql-replica-pvc
selector:

View File

@@ -22,6 +22,9 @@ cachePersistence:
service:
type: LoadBalancer
port: 18899
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
metallb.universe.tf/allow-shared-ip: k3s-cluster-ips
ingress:
enabled: true
ingressClassName: nginx