diff options
author | Julio Capote <jcapote@gmail.com> | 2023-02-12 03:43:57 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-02-12 03:43:57 +0000 |
commit | 72d883f2d3db0b599a9548afbdc01dab0c903ce6 (patch) | |
tree | d8c39be2b41d6879fb4d9f0be4713d5bceffcff2 /k8s | |
parent | cbe4ff6c019cfd2d513ccf2f9689bd6533896ad1 (diff) | |
download | capotej.com-72d883f2d3db0b599a9548afbdc01dab0c903ce6.tar.gz |
k8s folder
Diffstat (limited to 'k8s')
-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 |