Merge pull request #2894 from aledbf/authbind

Use authbind to bind privileged ports
This commit is contained in:
k8s-ci-robot 2018-08-05 08:43:43 -07:00 committed by GitHub
commit 7f7f59df79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 48 additions and 69 deletions

View file

@ -133,6 +133,13 @@ func (f *Framework) AfterEach() {
By("Waiting for test namespace to no longer exist")
err := DeleteKubeNamespace(f.KubeClientSet, f.IngressController.Namespace)
Expect(err).NotTo(HaveOccurred())
if CurrentGinkgoTestDescription().Failed {
log, err := f.NginxLogs()
Expect(err).ToNot(HaveOccurred())
By("Dumping NGINX logs after a failure running a test")
Logf("%v", log)
}
}
// IngressNginxDescribe wrapper function for ginkgo describe. Adds namespacing.

View file

@ -260,6 +260,14 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
securityContext:
capabilities:
drop:
- ALL
add:
- NET_BIND_SERVICE
# www-data -> 33
runAsUser: 33
ports:
- name: http
containerPort: 80