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 | |
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
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | docker-compose.yml | 6 | ||||
-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 | ||||
-rw-r--r-- | kind-config.yml | 7 |
7 files changed, 22 insertions, 18 deletions
diff --git a/README.md b/README.md index d1544c9..d34292a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ -kind create cluster --config kind-config.yml +install k3s + +helm --namespace metallb-system install --create-namespace metallb metallb/metallb +kubectl apply -f metallb_config.yml +kubectl apply -f metallb_announce.yml helm install rabbitmq oci://registry-1.docker.io/bitnamicharts/rabbitmq diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 7373c72..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,6 +0,0 @@ -services: - cloud-provider-kind: - build: https://github.com/kubernetes-sigs/cloud-provider-kind.git#main - volumes: - - /var/run/docker.sock:/var/run/docker.sock - network_mode: kind 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 diff --git a/kind-config.yml b/kind-config.yml deleted file mode 100644 index 3d1ee7f..0000000 --- a/kind-config.yml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Cluster -apiVersion: kind.x-k8s.io/v1alpha4 -nodes: -- role: control-plane - extraPortMappings: - - containerPort: 30124 - hostPort: 9999 |