<p>When trying to run gcr.io/google_containers/defaultbackend as non root, the pod goes to crashLoopBackOff state when I see the below error in logs </p>

<p><strong>standard_init_linux.go:211: exec user process caused "permission denied"</strong></p>

<pre><code>---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    run: ingress-default-backend
  name: ingress-default-backend
  namespace: ingress-haproxy
spec:
  replicas: 1
  selector:
    matchLabels:
      run: ingress-default-backend
  template:
    metadata:
      labels:
        run: ingress-default-backend
    spec:
      containers:
        - name: ingress-default-backend
          image: gcr.io/google_containers/defaultbackend:1.0
          ports:
          - containerPort: 8080
          securityContext:
            runAsGroup: 1000
            runAsNonRoot: true
            runAsUser: 1000
</code></pre>

<p>OS: Ubuntu 18.04.1 LTS</p>

<p><strong>Note: This issue persist only with ubuntu 18.04.1</strong></p>

<p>Looks like the issue is caused by lack of executable permissions to the user that You are trying to run this containers as in Your deployment.</p>

<p>You can try to modify the image dockerfile and add few lines that would allow the right user to execute commands like in this <a href="https://github.com/fsanys/sonarqube-developer/issues/1" rel="nofollow noreferrer">github</a> issue.</p>

<p>There is also lots of useful information about this in <a href="https://stackoverflow.com/questions/58298774/standard-init-linux-go211-exec-user-process-caused-exec-format-error">this</a> StackOverflow post.</p>

<p>Hope it Helps.</p>
