Tech Challenge
2026-08-10
☸️
Daily Tech Challenge
Kubernetes
medium
Question 1 of 5
The Service below already exists in namespace shop and is serving traffic. You now create a second NodePort Service in a DIFFERENT namespace, analytics, whose port block also asks for nodePort: 30080. What does the API server do with the second Service?
Example
# already exists in namespace shop
apiVersion: v1
kind: Service
metadata:
name: storefront
namespace: shop
spec:
type: NodePort
selector:
app: storefront
ports:
- port: 80
targetPort: 8080
nodePort: 30080
---
# now submitted in namespace analytics
apiVersion: v1
kind: Service
metadata:
name: dashboard
namespace: analytics
spec:
type: NodePort
selector:
app: dashboard
ports:
- port: 80
targetPort: 3000
nodePort: 30080Monday, August 10, 2026 · A new challenge drops every day