1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-08-23 18:12:20 +00:00

Add k8s deployment

This commit is contained in:
J. Fernando Sánchez
2022-05-23 12:45:40 +02:00
parent a7849bb029
commit e9266af924
4 changed files with 36 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ spec:
metadata:
labels:
role: senpy-latest
app: test
app: senpy
spec:
containers:
- name: senpy-latest

View File

@@ -1,21 +1,19 @@
---
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: senpy-ingress
labels:
app: senpy
spec:
rules:
- host: latest.senpy.gsi.upm.es
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: senpy-latest
servicePort: 5000
- host: latest.senpy.gsi.upm.es
http:
paths:
- path: /
backend:
serviceName: senpy-latest
servicePort: 5000
service:
name: senpy-latest
port:
number: 5000

View File

@@ -3,6 +3,8 @@ apiVersion: v1
kind: Service
metadata:
name: senpy-latest
labels:
app: senpy
spec:
type: ClusterIP
ports: