Create kerberos-hub-nodeports.yaml

This commit is contained in:
Cedric Verstraeten
2024-11-26 05:08:54 +01:00
parent ad33a3f3c4
commit f704c2ee7c

View File

@@ -0,0 +1,34 @@
---
apiVersion: v1
kind: Service
metadata:
name: hub-frontend--nodeport
labels:
app: hub-frontend
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 32080 # You can specify a port in the range 30000-32767 or let Kubernetes assign one automatically
name: frontend
protocol: TCP
selector:
app: hub-frontend
---
apiVersion: v1
kind: Service
metadata:
name: hub-api-nodeport
labels:
app: hub-api
spec:
type: NodePort
ports:
- port: 80
targetPort: 8081
nodePort: 32081 # You can specify a port in the range 30000-32767 or let Kubernetes assign one automatically
name: backend
protocol: TCP
selector:
app: hub-api