Skip to content

Commit

Permalink
move to lb svc, remove old manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
rssnyder committed Oct 2, 2023
1 parent e7fd902 commit 73f8325
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 13 deletions.
3 changes: 1 addition & 2 deletions infra/k8s/gitness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@ metadata:
name: {{ .Values.app }}
namespace: {{ .Values.namespace }}
spec:
type: NodePort
type: LoadBalancer
selector:
app: {{ .Values.app }}
ports:
- name: web
port: 3000
targetPort: 3000

---
apiVersion: v1
Expand Down
7 changes: 7 additions & 0 deletions infra/k8s/helm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# helm installs in the cluster

helm upgrade --install metallb metallb/metallb --namespace metallb-system --create-namespace

helm upgrade --install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace --version 1.5.1
8 changes: 0 additions & 8 deletions infra/k8s/longhorn-default-settings.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions infra/k8s/longhorn.yaml

This file was deleted.

18 changes: 18 additions & 0 deletions infra/k8s/metallb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: twofivefour
namespace: metallb-system
spec:
addresses:
- 192.168.254.1-192.168.254.254

---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: advertisethis
namespace: metallb-system
spec:
ipAddressPools:
- twofivefour

0 comments on commit 73f8325

Please sign in to comment.