From 06a431dd3e8870b82a05664763ddae64f03b44ea Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 9 Nov 2022 16:04:26 +0000 Subject: [PATCH] code: add back load balancer --- basic/apps/code/metallb-gitea.yaml | 20 +++++++++++++++++++ .../kustomizations/kube-system-config.yaml | 19 ------------------ 2 files changed, 20 insertions(+), 19 deletions(-) create mode 100644 basic/apps/code/metallb-gitea.yaml delete mode 100644 basic/infrastructure/kustomizations/kube-system-config.yaml diff --git a/basic/apps/code/metallb-gitea.yaml b/basic/apps/code/metallb-gitea.yaml new file mode 100644 index 0000000..09f46e1 --- /dev/null +++ b/basic/apps/code/metallb-gitea.yaml @@ -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}" diff --git a/basic/infrastructure/kustomizations/kube-system-config.yaml b/basic/infrastructure/kustomizations/kube-system-config.yaml deleted file mode 100644 index 62b6cb1..0000000 --- a/basic/infrastructure/kustomizations/kube-system-config.yaml +++ /dev/null @@ -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