Add experiemental gateway
@@ -32,4 +32,42 @@ spec:
ports:
- containerPort: 8080
protocol: TCP
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: gateway
+ labels:
+ app: gateway
+spec:
+ type: NodePort
+ ports:
+ - port: 8080
+ protocol: TCP
+ targetPort: 8080
+ nodePort: 31112
+ selector:
+ app: gateway
+---
+apiVersion: apps/v1beta1 # for versions before 1.6.0 use extensions/v1beta1
+kind: Deployment
+metadata:
+ name: gateway
+spec:
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: gateway
+ spec:
+ containers:
+ - name: gateway
+ image: alexellis2/gateway:external
+ imagePullPolicy: Always
+ env:
+ - name: functions_provider_url
+ value: "http://faas-netesd.default:8080/"
+ ports:
+ - containerPort: 8080
+ protocol: TCP
