Add nodeports to expose sql and rabbitmq admin ports

This commit is contained in:
Miguel Veloso 2019-08-21 11:17:27 +01:00
parent 974c1c0716
commit da04d6df88
3 changed files with 26 additions and 0 deletions

2
k8s/deploy-nodeports.ps1 Normal file
View File

@ -0,0 +1,2 @@
kubectl apply -f .\nodeports\rabbitmq-admin.yaml
kubectl apply -f .\nodeports\sql-services.yaml

View File

@ -0,0 +1,12 @@
kind: Service
apiVersion: v1
metadata:
name: rabbitmq-admin
spec:
type: NodePort
selector:
app: rabbitmq
ports:
- port: 15672
nodePort: 31672
name: rabbitmq-port

View File

@ -0,0 +1,12 @@
kind: Service
apiVersion: v1
metadata:
name: sql-service
spec:
type: NodePort
selector:
app: sql-data
ports:
- port: 1433
nodePort: 31433
name: sql-port