title: Adding basic auth to kubernetes deployment
body: <p>Could anyone explain me what is the best way to add basic Auth to a kubernetes cluster deployment that is running a webapp on Google Cloud (GCP)</p>
  
  <p>We are exposing it using: </p>
  
  <pre><code>kubectl expose deployment testSanbox --type=LoadBalancer --port 80 --target-port 80
  </code></pre>
  
  <p>We don't need anything fancy as this is only a dev sandbox but we don't want anyone to be able to reach it.
  It could be a single user/pass combo or maybe use the google credentials that we manage with IAM.</p>
  
  <p>Sorry as you probably already noticed I'm not really experienced with kubernetes or GCP.</p>
  
  <p>Thanks</p>