diff --git a/infra/k8s/gitness.yaml b/infra/k8s/gitness.yaml index c547167..55d555a 100644 --- a/infra/k8s/gitness.yaml +++ b/infra/k8s/gitness.yaml @@ -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 diff --git a/infra/k8s/helm.sh b/infra/k8s/helm.sh new file mode 100644 index 0000000..5fcaa29 --- /dev/null +++ b/infra/k8s/helm.sh @@ -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 diff --git a/infra/k8s/longhorn-default-settings.yaml b/infra/k8s/longhorn-default-settings.yaml deleted file mode 100644 index 39f3c20..0000000 --- a/infra/k8s/longhorn-default-settings.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: longhorn-default-setting - namespace: {{ .Values.namespace }} -data: - default-setting.yaml: |- - default-data-path: /mnt/longhorn diff --git a/infra/k8s/longhorn.yaml b/infra/k8s/longhorn.yaml deleted file mode 100644 index b39ca25..0000000 --- a/infra/k8s/longhorn.yaml +++ /dev/null @@ -1,3 +0,0 @@ -defaultSettings: - defaultDataPath: /mnt/longhorn -namespace: <+serviceVariables.namespace> diff --git a/infra/k8s/metallb.yaml b/infra/k8s/metallb.yaml new file mode 100644 index 0000000..079baf9 --- /dev/null +++ b/infra/k8s/metallb.yaml @@ -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 \ No newline at end of file