From c8e45febfcfbc2bb4223d42456f7856cc74b0699 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Fri, 4 Apr 2025 11:32:36 +0100 Subject: [PATCH] added k8s deployment --- deployment.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 deployment.yml diff --git a/deployment.yml b/deployment.yml new file mode 100644 index 0000000..646cb29 --- /dev/null +++ b/deployment.yml @@ -0,0 +1,40 @@ +apiVersion: v1 +kind: Service +metadata: + name: mysite-service +spec: + selector: + app/name: mysite + ports: + - name: http + protocol: TCP + port: 8001 + targetPort: 8001 + externalIPs: + - 192.168.1.102 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: mysite-deployment + labels: + app/name: mysite +spec: + replicas: 1 + selector: + matchLabels: + app/name: mysite + template: + metadata: + labels: + app/name: mysite + spec: + containers: + - name: mysite + image: docker.andr3h3nriqu3s.com/mysite:latest + imagePullPolicy: Always + ports: + - containerPort: 8001 + imagePullSecrets: + - name: kronos-registry-secret +