Add kubernetes files and shell scripts for test deployment

This commit is contained in:
David Eder
2021-05-02 22:31:00 +02:00
parent 5c6be895e4
commit dae1700704
10 changed files with 173 additions and 31 deletions
+22
View File
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: entity-ident
labels:
app: entity-ident
spec:
replicas: 1
selector:
matchLabels:
app: entity-ident
template:
metadata:
labels:
app: entity-ident
spec:
containers:
- name: entity-ident
image: entity-ident
ports:
- containerPort: 5000
imagePullPolicy: Never
+12
View File
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: entity-ident
labels:
service: entity-ident
spec:
selector:
app: entity-ident
ports:
- port: 5000
targetPort: 5000
+15
View File
@@ -0,0 +1,15 @@
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: minimal-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- path: /testpath
pathType: Prefix
backend:
serviceName: entity-ident
servicePort: 5000