Hi, I am attempting to deploy k8s on google comput...
# general
f
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
I think I don’t understand this question.
what are you actually trying to provision? A Kubernetes cluster?
Like, without GKE
f
yes i am trying to provision a kubernetes cluster without gke
c
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
My question, does pulumi has the functionality to create a cluster of these VM's and deploy kubernetes architecture on them
c
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
can it replicate the features that kops does
I guess my question is that can pulumi deploy kubernetes for me
c
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
okay thanks
hey i have another query, to use existing clusters, kubeconfig needs to be present in it right?
c
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
okay thanks again
c
sure