Google Kubernetes Engine models.
Install with npm.
npm install @kubernetes-models/gke
via BackendConfig
import { BackendConfig } from "@kubernetes-models/gke/cloud.google.com/v1beta1/BackendConfig";
const config = new BackendConfig({
metadata: {
name: "iap-example"
},
spec: {
iap: {
enabled: true,
oauthclientCredentials: {
secretName: "iap-oauth-secret"
}
}
}
});
// Validate against JSON schema
config.validate();
import { SpannerInstance } from "@kubernetes-models/gke/spanner.cnrm.cloud.google.com/v1beta1/SpannerInstance";
const instance = new SpannerInstance({
metadata: {
name: "spanner-example"
},
spec: {
config: "regional-us-west1",
displayName: "Spanner Example",
numNodes: 1
}
});
instance.validate();
MIT