diff options
-rw-r--r-- | k8s/capotej-site-deployment.yaml | 20 | ||||
-rw-r--r-- | k8s/capotej-site-svc.yaml | 10 |
2 files changed, 30 insertions, 0 deletions
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 |