From 620955941ceccdb051a7189a757817776745c99a Mon Sep 17 00:00:00 2001 From: alfredeen Date: Fri, 19 Apr 2024 15:42:49 +0200 Subject: [PATCH] Added k8s manifests --- manifests/deployment.yaml | 21 +++++++++++++++++++++ manifests/service.yaml | 12 ++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 manifests/deployment.yaml create mode 100644 manifests/service.yaml diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml new file mode 100644 index 0000000..afe309f --- /dev/null +++ b/manifests/deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: locust-deployment +spec: + replicas: 1 + selector: + matchLabels: + app: locust + template: + metadata: + labels: + app: locust + annotations: + statefulset.kubernetes.io/pod-name: locust + spec: + containers: + - name: locust + image: ghcr.io/scilifelabdatacentre/serve-load-testing:main-20240419-1108 + ports: + - containerPort: 8089 diff --git a/manifests/service.yaml b/manifests/service.yaml new file mode 100644 index 0000000..a516f85 --- /dev/null +++ b/manifests/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: locust-service +spec: + selector: + app: locust + ports: + - protocol: TCP + port: 8089 + targetPort: 8089 + type: ClusterIP