From 72d883f2d3db0b599a9548afbdc01dab0c903ce6 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sat, 11 Feb 2023 22:43:57 -0500 Subject: k8s folder --- k8s/capotej-site-deployment.yaml | 20 ++++++++++++++++++++ k8s/capotej-site-svc.yaml | 10 ++++++++++ 2 files changed, 30 insertions(+) create mode 100644 k8s/capotej-site-deployment.yaml create mode 100644 k8s/capotej-site-svc.yaml diff --git a/k8s/capotej-site-deployment.yaml b/k8s/capotej-site-deployment.yaml new file mode 100644 index 0000000..d730cd0 --- /dev/null +++ b/k8s/capotej-site-deployment.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: capotej-site +spec: + replicas: 1 + revisionHistoryLimit: 3 + selector: + matchLabels: + app: capotej-site + template: + metadata: + labels: + app: capotej-site + spec: + containers: + - image: localhost/capotej-site:latest + name: capotej-site + ports: + - containerPort: 80 \ No newline at end of file diff --git a/k8s/capotej-site-svc.yaml b/k8s/capotej-site-svc.yaml new file mode 100644 index 0000000..286cebb --- /dev/null +++ b/k8s/capotej-site-svc.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: capotej-site +spec: + ports: + - port: 80 + targetPort: 80 + selector: + app: capotej-site \ No newline at end of file -- cgit v1.2.3