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 namespace: adguard-home
annotations: annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips metallb.universe.tf/address-pool: k3s-cluster-ips
metallb.universe.tf/allow-shared-ip: k3s-cluster-ips
labels: labels:
app.kubernetes.io/name: adguard-home app.kubernetes.io/name: adguard-home
spec: spec:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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