add service and ingress for stage-maker
This commit is contained in:
18
stage-maker/ingress.yaml
Normal file
18
stage-maker/ingress.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: stage-maker-ingress
|
||||||
|
namespace: stage-maker
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: ontime.jwetzell.com
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /api/v1/stage
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: stage-maker-service
|
||||||
|
port:
|
||||||
|
number: 3000
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
|
- ingress.yaml
|
||||||
- cluster-role.yaml
|
- cluster-role.yaml
|
||||||
- service-account.yaml
|
- service-account.yaml
|
||||||
|
- service.yaml
|
||||||
|
|||||||
15
stage-maker/service.yaml
Normal file
15
stage-maker/service.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: stage-maker-service
|
||||||
|
namespace: stage-maker
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: stage-maker
|
||||||
|
ports:
|
||||||
|
- protocol: "TCP"
|
||||||
|
port: 3000
|
||||||
|
targetPort: 3000
|
||||||
|
name: web
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user