From 7febb4d673469d3d6dcea8277bd9360b19853cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Mon, 23 May 2022 14:03:44 +0200 Subject: [PATCH] Update k8s files --- k8s/senpy-deployment.yaml | 8 +++++--- k8s/senpy-ingress.yaml | 2 +- k8s/senpy-svc.yaml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/k8s/senpy-deployment.yaml b/k8s/senpy-deployment.yaml index 73d811c..692f91b 100644 --- a/k8s/senpy-deployment.yaml +++ b/k8s/senpy-deployment.yaml @@ -1,15 +1,17 @@ --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: senpy-latest spec: replicas: 1 + selector: + matchLabels: + app: senpy-latest template: metadata: labels: - role: senpy-latest - app: senpy + app: senpy-latest spec: containers: - name: senpy-latest diff --git a/k8s/senpy-ingress.yaml b/k8s/senpy-ingress.yaml index d5ac4a2..31de175 100644 --- a/k8s/senpy-ingress.yaml +++ b/k8s/senpy-ingress.yaml @@ -4,7 +4,7 @@ kind: Ingress metadata: name: senpy-ingress labels: - app: senpy + app: senpy-latest spec: rules: - host: latest.senpy.gsi.upm.es diff --git a/k8s/senpy-svc.yaml b/k8s/senpy-svc.yaml index 36aea4c..caa191d 100644 --- a/k8s/senpy-svc.yaml +++ b/k8s/senpy-svc.yaml @@ -4,7 +4,7 @@ kind: Service metadata: name: senpy-latest labels: - app: senpy + app: senpy-latest spec: type: ClusterIP ports: