Add kubernetes files and shell scripts for test deployment
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user