https://pulumi.com logo
c

clever-crowd-18899

04/23/2020, 3:12 PM
Hi I am really Enjoying Pulumi, thanks for the team and others involved for making this great job. I have a question about using Pulumi for my needs, I want to configure Istio in a GCP K8s using Pulumi. I already acomplished configuring Kubernetes cluster in GCP, and for Istio I don't want to use Helm, because Istio is dropping helm in 1.6. Now they instruct you to use istioclt that is a CLI to install Istio. So I want to know if the following is possible and safe: is it possible to use Pulumi to configure a cluster , then install Istio with istioclt and then apply the k8s manifests that needs istio using Pulumi again? If not, is there another way ?
c

cool-egg-852

04/23/2020, 3:15 PM
You can’t install it via istioclt, but I believe their CLI supports generating the manifests.
Which you can use with pulumi
istioctl manifest generate > $HOME/generated-manifest.yaml
c

clever-crowd-18899

04/23/2020, 3:19 PM
Thank you, I tried to generate with istioctl manifest generate, but it generates a non-valid yaml with if-else conditions. I will try to search if there is another way.
c

cool-egg-852

04/23/2020, 3:19 PM
If it is, that sounds like a bug.
c

clever-crowd-18899

04/23/2020, 3:20 PM
I will try again, thank you
One more question, I know it will generate k8s CRD, that needs to be up and running before the others manifests, is there a way to apply CRD manifests and then apply the others manifests?
Like two sequential kubectl apply ?
g

gorgeous-egg-16927

04/23/2020, 3:44 PM
Pulumi’s k8s provider has retries built in, so you can apply everything at the same time in most cases, and it will still resolve properly.
c

cool-egg-852

04/23/2020, 4:23 PM
I do wish Pulumi handled support for dependencies when using yaml/helm. I can’t imagine it being hard to do.
o

orange-tailor-85423

04/27/2020, 6:56 PM
Can you explain this a bit more?
Copy code
then apply the k8s manifests that needs istio using Pulumi again
what k8s manifests are you referring to
c

clever-crowd-18899

04/29/2020, 4:30 PM
yaml
I solved with @cool-egg-852 answer using configFile