From c0f699b45b75fc4a0295ac57df4520bead4738da Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 2 Jul 2024 23:56:04 -0500 Subject: [PATCH] Add Kubernetes service --- kustomize/kustomization.yaml | 1 + kustomize/services.yaml | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 kustomize/services.yaml diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index c443d2e..e39cf60 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -4,3 +4,4 @@ kind: Kustomization namespace: toy resources: - deployment.yaml + - services.yaml diff --git a/kustomize/services.yaml b/kustomize/services.yaml new file mode 100644 index 0000000..d95ffec --- /dev/null +++ b/kustomize/services.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: toy + +spec: + ports: + - name: web + port: 80 + targetPort: web + selector: + app: toy