diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-04-29 00:51:47 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-04-29 22:17:20 +0200 |
commit | 7ac364bb46dd0e4e19f940fe7b67f589ef6b9f95 (patch) | |
tree | 1341b9cd243aa424a6dd7657781e6ee51ff4c3a0 /k8s | |
parent | Switch to go for rest-api (diff) | |
download | fs-tracer-backend-7ac364bb46dd0e4e19f940fe7b67f589ef6b9f95.tar.gz fs-tracer-backend-7ac364bb46dd0e4e19f940fe7b67f589ef6b9f95.tar.bz2 fs-tracer-backend-7ac364bb46dd0e4e19f940fe7b67f589ef6b9f95.zip |
Switch to k3s from kind
Diffstat (limited to 'k8s')
-rw-r--r-- | k8s/metallb_announce.yml | 5 | ||||
-rw-r--r-- | k8s/metallb_config.yml | 8 | ||||
-rw-r--r-- | k8s/rest-api/templates/service.yaml | 4 | ||||
-rw-r--r-- | k8s/rest-api/values.yaml | 4 |
4 files changed, 17 insertions, 4 deletions
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 |