<p>I'm creating a Kubernetes Alpha cluster with <code>--enable-pod-security-policy</code> which is only available when using <code>gcloud alpha</code> instead of <code>gcloud</code> afaik. I'm using</p>

<pre><code>$ gcloud alpha container clusters create cluster-name --machine-type=n1-standard-1 --no-enable-stackdriver-kubernetes --no-enable-autoupgrade --preemptible --enable-kubernetes-alpha --quiet --enable-pod-security-policy
</code></pre>

<p>which fails due to </p>

<pre><code>61 WARNING: Currently VPC-native is not the default mode during cluster creation. In the future, this will become the default mode and can be disabled using `--no-enable-ip-alias` flag. Use `--[no-]enable-ip-alias` flag to suppress this warning.
62 WARNING: Starting in 1.12, default node pools in new clusters will have their legacy Compute Engine instance metadata endpoints disabled by default. To create a cluster with legacy instance metadata endpoints disabled in the default node pool, run `clusters create` with the flag `--metadata disable-legacy-endpoints=true`.
63 WARNING: Your Pod address range (`--cluster-ipv4-cidr`) can accommodate at most 1008 node(s). 
64 ERROR: (gcloud.alpha.container.clusters.create) ResponseError: code=404, message=Method not found.
</code></pre>

<p>When using <code>gcloud</code> instead of <code>gcloud alpha</code> for the above command without <code>--enable-pod-security-policy</code> the cluster is created. I'm not sure and I think no one can tell from the application feedback where the error is.</p>

<p>As per the Cloud SDK <a href="https://cloud.google.com/sdk/docs/release-notes" rel="nofollow noreferrer">release notes</a>, the <code>--enable-pod-security-policy</code> flag was added in version 191.0.0.</p>

<p>You should ensure you have an up-to-date Cloud SDK installation by running:</p>

<pre><code>$ gcloud components update
</code></pre>

<p>and run your command with <code>beta</code> keyword:</p>

<pre><code>$ gcloud beta container clusters create cluster-name --machine-type=n1-standard-1 --no-enable-stackdriver-kubernetes --no-enable-autoupgrade --preemptible --enable-kubernetes-alpha --quiet --enable-pod-security-policy
</code></pre>
