https://pulumi.com logo
#typescript
Title
# typescript
i

important-ram-83431

02/19/2020, 11:30 AM
Copy code
const rancherCluster = new rancher2.Cluster(name, {
    name: name,
    description: "Imported Cluster for Airflow (" + name + ")",
    driver: "imported",
    enableClusterAlerting: true,
    enableClusterIstio: true,
    enableClusterMonitoring: true,
});

const rancherClusterImport = new k8s.yaml.ConfigFile(name + "-import", {
        file: rancherCluster.clusterRegistrationToken.manifestUrl,
    }, {
        provider: cluster.provider,
        dependsOn: [cluster, rancherCluster]
    });
});