https://pulumi.com logo
#kubernetes
Title
# kubernetes
w

wet-noon-14291

08/27/2020, 11:37 AM
I think this question, https://pulumi-community.slack.com/archives/CRVK66N5U/p1598526246018200, might belong here. I seems to have some problems with running
pulumi up
when I have some
ConfigFile
resources. I guess it is because I haven't "authenticated" against the cluster locally. How do I use
ConfigFile
without logging in? Do I create
ComponentResourceOptions
where I set the
Provider
? How do I get the provider from a cluster?
Got it working right after sending the message. What I did was (using F#):
Copy code
let provider =
        Pulumi.Kubernetes.Provider("k8s",
            Pulumi.Kubernetes.ProviderArgs(
                KubeConfig = io cluster.KubeConfigRaw
            )        
        )

...
    let options = ComponentResourceOptions(Provider = provider)

    ConfigFile("something",
        ConfigFileArgs(
            File = input "manifests/something.yaml"
        ), options = options) |> ignore
4 Views