From 85abf0fda682c9ba44dc76b0332c059d2b8d7059 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Sat, 10 Feb 2024 19:04:08 +0100 Subject: [PATCH] with services? --- apps/recipes/kustomization.yaml | 1 + apps/recipes/services.yaml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 apps/recipes/services.yaml diff --git a/apps/recipes/kustomization.yaml b/apps/recipes/kustomization.yaml index 22ba602..e0206e2 100644 --- a/apps/recipes/kustomization.yaml +++ b/apps/recipes/kustomization.yaml @@ -6,6 +6,7 @@ resources: - pvc.yaml - deployment.yaml - configmap.yaml + - services.yaml - ingress.yaml namespace: recipes diff --git a/apps/recipes/services.yaml b/apps/recipes/services.yaml new file mode 100644 index 0000000..3039ef9 --- /dev/null +++ b/apps/recipes/services.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Service +metadata: + name: recipes + labels: + app: recipes +spec: + selector: + app: recipes + ports: + - port: 80 + targetPort: http + name: http + protocol: TCP + - port: 8080 + targetPort: gunicorn + name: gunicorn + protocol: TCP \ No newline at end of file