From 7ac364bb46dd0e4e19f940fe7b67f589ef6b9f95 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Mon, 29 Apr 2024 00:51:47 +0200 Subject: Switch to k3s from kind --- k8s/metallb_announce.yml | 5 +++++ k8s/metallb_config.yml | 8 ++++++++ k8s/rest-api/templates/service.yaml | 4 ++-- k8s/rest-api/values.yaml | 4 ++-- 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 k8s/metallb_announce.yml create mode 100644 k8s/metallb_config.yml (limited to 'k8s') diff --git a/k8s/metallb_announce.yml b/k8s/metallb_announce.yml new file mode 100644 index 0000000..3ef889a --- /dev/null +++ b/k8s/metallb_announce.yml @@ -0,0 +1,5 @@ +apiVersion: metallb.io/v1beta1 +kind: L2Advertisement +metadata: + name: simplel2 + namespace: metallb-system diff --git a/k8s/metallb_config.yml b/k8s/metallb_config.yml new file mode 100644 index 0000000..497ab94 --- /dev/null +++ b/k8s/metallb_config.yml @@ -0,0 +1,8 @@ +apiVersion: metallb.io/v1beta1 +kind: IPAddressPool +metadata: + name: prod-pool + namespace: metallb-system +spec: + addresses: + - 192.168.11.0/24 diff --git a/k8s/rest-api/templates/service.yaml b/k8s/rest-api/templates/service.yaml index 4942d60..12994b1 100644 --- a/k8s/rest-api/templates/service.yaml +++ b/k8s/rest-api/templates/service.yaml @@ -7,8 +7,8 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.service.port }} - nodePort: 30124 + - port: 9999 + targetPort: 80 protocol: TCP name: http selector: diff --git a/k8s/rest-api/values.yaml b/k8s/rest-api/values.yaml index 63d7d5c..e444f95 100644 --- a/k8s/rest-api/values.yaml +++ b/k8s/rest-api/values.yaml @@ -37,8 +37,8 @@ securityContext: {} # runAsUser: 1000 service: - type: NodePort - port: 80 + type: LoadBalancer + port: 80 ingress: enabled: false -- cgit 1.4.1