https://pulumi.com logo
#general
Title
# general
f

fast-boots-34053

02/18/2019, 8:48 AM
Hi, I am attempting to deploy k8s on google compute engine, My use case does not provide the feasibilty of deploying it on a GKE cluster. Can I achieve the same using pulumi or does pulumi only deploy on an existing cluster?
c

creamy-potato-29402

02/18/2019, 8:49 AM
I think I don’t understand this question.
what are you actually trying to provision? A Kubernetes cluster?
Like, without GKE
f

fast-boots-34053

02/18/2019, 8:51 AM
yes i am trying to provision a kubernetes cluster without gke
c

creamy-potato-29402

02/18/2019, 8:52 AM
How are you doing this now?
You can deploy anything that exists in the GCP API.
If you’re just booting VMs, that should work.
f

fast-boots-34053

02/18/2019, 8:54 AM
My question, does pulumi has the functionality to create a cluster of these VM's and deploy kubernetes architecture on them
c

creamy-potato-29402

02/18/2019, 8:55 AM
It can deploy VMs. The rest depends on what else you’re doing.
Are you SSH’ing into the VMs with Ansible or something like that? That probably won’t work.
If you are just running a bunch of
gcloud
commands, it should work.
f

fast-boots-34053

02/18/2019, 8:56 AM
can it replicate the features that kops does
I guess my question is that can pulumi deploy kubernetes for me
c

creamy-potato-29402

02/18/2019, 9:00 AM
I understand. kops supports generating terraform files. Anything that is compatible with that feature, is compatible with Pulumi.
kops is not just provisioning though. Pulumi only does provisioning.
f

fast-boots-34053

02/18/2019, 9:03 AM
okay thanks
hey i have another query, to use existing clusters, kubeconfig needs to be present in it right?
c

creamy-potato-29402

02/18/2019, 9:07 AM
no
you can create a “Kubernetes provider” if you know where the cluster endpoint is.
then you’d pass that provider into the last argument of the resource constructors:
f

fast-boots-34053

02/18/2019, 9:09 AM
okay thanks again
c

creamy-potato-29402

02/18/2019, 9:10 AM
sure