add MetalLB support for apps adguard-home, gitea

This commit is contained in:
2024-08-26 10:47:45 +10:00
parent 358f5bf0cc
commit 70a742c89c
2 changed files with 5 additions and 1 deletions

View File

@@ -3,12 +3,14 @@ kind: Service
metadata: metadata:
name: adguard-home name: adguard-home
namespace: adguard-home namespace: adguard-home
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
labels: labels:
app.kubernetes.io/name: adguard-home app.kubernetes.io/name: adguard-home
spec: spec:
selector: selector:
app.kubernetes.io/name: adguard-home app.kubernetes.io/name: adguard-home
type: ClusterIP type: LoadBalancer
internalTrafficPolicy: Cluster internalTrafficPolicy: Cluster
ports: ports:
- protocol: TCP - protocol: TCP

View File

@@ -17,6 +17,8 @@ service:
ports: ports:
http: 10080 http: 10080
ssh: 10022 ssh: 10022
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ips
ingress: ingress:
enabled: true enabled: true
ingressClassName: "nginx" ingressClassName: "nginx"