Open arthurzenika opened 1 year ago
For a kind: Service kubeaudit autofix add a targetPort: 0 which I don't understand, and I can't find any documentation on why this is a recommended change.
kind: Service
targetPort: 0
--- a/tomcat-service.yaml +++ b/tomcat-service.yaml @@ -8,7 +8,10 @@ spec: ports: - name: http port: 8080 + targetPort: 0 - name: jmx port: 1089 + targetPort: 0 selector: name: tomcat
launch kubeaudit autofix on
--- apiVersion: v1 kind: Service metadata: name: tomcat spec: ports: - name: http port: 8080 - name: jmx port: 1089 selector: name: tomcat
If there is a valid reason for this, maybe a comment could be added to the yaml ? Or some documentation in the kubeaudit project ?
Following a discussion with a colleague that knows a bit more about Kubernetes than me, I think this is a bug.
ISSUE TYPE
BUG REPORT
SUMMARY
For a
kind: Service
kubeaudit autofix add atargetPort: 0
which I don't understand, and I can't find any documentation on why this is a recommended change.ENVIRONMENT
STEPS TO REPRODUCE
launch kubeaudit autofix on
EXPECTED RESULTS
If there is a valid reason for this, maybe a comment could be added to the yaml ? Or some documentation in the kubeaudit project ?