Open braaar opened 1 year ago
Here's the related code:
import * as k8s from '@pulumi/kubernetes';
import { cluster } from '../google/gke';
export const provider = new k8s.Provider('k8s-provider', {
kubeconfig: cluster.getKubeconfig(),
});
and in google/gke
:
import * as google from '@pulumi/google-native';
import { region, zone } from '../config';
import { provider } from './providers';
const serverConfig = google.container.v1.getServerConfigOutput({
location: region,
});
const engineVersion = serverConfig.apply((conf) => conf.validMasterVersions[0]);
export const cluster = new google.container.v1.Cluster(
'main-cluster',
{
name: 'ayr-main-cluster',
initialClusterVersion: engineVersion,
autopilot: { enabled: true },
},
{ provider: provider.google },
);
We are getting a strange error from pulumi preview action