I am trying to come up with a hello-world prototype for GCP Kubernetes Engine using IAP to allocate a container for a specific user and route all requests from this user to this container only. It is to protect user sensitive information in a totally isolated environment.
I followed "Enabling IAP for GKE" as @wilrof suggested, and got stuck in adding an iap block to the BackendConfig as follows;
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: config-default
namespace: my-namespace
spec:
iap:
enabled: true
oauthclientCredentials:
secretName: my-secret
When I run 'kubectl apply -f backendconfig.yaml', it complains that no matches for kind "BackendConfig" in version "cloud.google.com/v1". I changed the first line to cloud.google.com/v1beta1, then it says namespaces "my-namespace" not found. Not sure where to go from here.