Service Type is NodePort
- Query id: 845acfbe-3e10-4b8e-b656-3b404d36dfb2
- Query name: Service Type is NodePort
- Platform: Kubernetes
- Severity: Low
- Category: Networking and Firewall
- URL: Github
Description¶
Service type should not be NodePort
Documentation
Code samples¶
Code samples with security vulnerabilities¶
Positive test num. 1 - yaml file
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
type: NodePort
selector:
app: MyApp
ports:
- port: 80
targetPort: 80
nodePort: 30007