code: add back load balancer

This commit is contained in:
xeruf 2022-11-09 16:04:26 +00:00
parent acb1a10eb5
commit 06a431dd3e
2 changed files with 20 additions and 19 deletions

View File

@ -0,0 +1,20 @@
# https://metallb.org/usage/
#apiVersion: metallb.io/v1beta1
apiVersion: v1
kind: Service
metadata:
name: gitea-ssh
spec:
type: LoadBalancer
loadBalancerIP: "${ip_address}"
ports:
- name: ssh
protocol: TCP
port: 22
targetPort: 22
selector:
app: gitea
#status:
# loadBalancer:
# ingress:
# - ip: "${ip_address}"

View File

@ -1,19 +0,0 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: kube-system-config
namespace: flux-system
spec:
interval: 1h
timeout: 20m
dependsOn:
- name: metallb
sourceRef:
kind: GitRepository
name: stackspout
path: ./basic/config/kube-system
prune: true
postBuild:
substituteFrom:
- kind: Secret
name: stackspin-cluster-variables