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

rhythmic-rain-31941

09/29/2021, 7:56 PM
Hi Team, i'm using https://www.pulumi.com/docs/reference/pkg/rancher2/ for my cluster creation/provisioning in rancher, and i'm trying to find the resource which can create service account, is it possible to create it?.
b

billowy-army-68599

09/29/2021, 8:14 PM
do you mean a Kubernetes service account? or a rancher service account?
r

rhythmic-rain-31941

09/29/2021, 8:53 PM
Kubernetes service account
b

billowy-army-68599

09/29/2021, 9:11 PM
You'd need to use the kubernetes provider to do that part
r

rhythmic-rain-31941

09/29/2021, 9:57 PM
oh but that new k8s cluster is something i have provisioned via rancher2.Cluster , still i need to use k8s provider to create it?
b

billowy-army-68599

09/29/2021, 9:58 PM
yes, once the cluster is up, you need to interact directly with the Kubernetes API. Rancher is just the cluster provisioner.
1
you can pass the
kubeconfig
to a provider: https://www.pulumi.com/docs/reference/pkg/rancher2/cluster/#kube_config_python and talk directly to the Kubernetes cluster you've provisioned
r

rhythmic-rain-31941

09/29/2021, 10:29 PM
got it, thank you for sharing this. i do have one another question, do we know when can this resource be available in pulumi as it is available in terraform already? this is the resource : https://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/storage_class_v2
b

billowy-army-68599

09/29/2021, 11:15 PM
Which version of the terraform provider is it in?
r

rhythmic-rain-31941

09/29/2021, 11:31 PM
its in 1.20.0
looks like it was introduced in 1.17.0 which was released couple of months back
b

billowy-army-68599

09/29/2021, 11:39 PM
We are a couple releases behind with that provider, I was working on it today so please bear with us
r

rhythmic-rain-31941

09/29/2021, 11:43 PM
No worries at all, i was just checking if this something going to be available