From 0b2830c2ec5c32889f420fc3436e176d659f2802 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Sat, 16 Nov 2024 12:57:46 -0500 Subject: [PATCH] Add service --- .../documentation-deployment.yaml | 4 ++-- .../static-site-hosts-services.yaml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 cluster/static-site-hosts/static-site-hosts-services.yaml diff --git a/cluster/static-site-hosts/documentation-deployment.yaml b/cluster/static-site-hosts/documentation-deployment.yaml index 69e31e6..a6138cb 100644 --- a/cluster/static-site-hosts/documentation-deployment.yaml +++ b/cluster/static-site-hosts/documentation-deployment.yaml @@ -6,11 +6,11 @@ metadata: spec: selector: matchLabels: - app: documentation-site + app: static-site template: metadata: labels: - app: documentation-site + app: static-site spec: containers: - name: documentation-site diff --git a/cluster/static-site-hosts/static-site-hosts-services.yaml b/cluster/static-site-hosts/static-site-hosts-services.yaml new file mode 100644 index 0000000..f0b0664 --- /dev/null +++ b/cluster/static-site-hosts/static-site-hosts-services.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: static-site-services + namespace: default +spec: + type: LoadBalancer + ports: + - port: 80 + targetPort: 80 + protocol: TCP + selector: + app: static-site +