I wanted to use an api in my k8s config like <moni...
# kubernetes
a
I wanted to use an api in my k8s config like monitoring.coreos.com/v1, the solution would be to write it as a yaml file and use yaml.configFile but i also want to insert some variables into it.... how would i approach this?
b
you don't need to use
yaml
to do this, you can use the custom resource option
however, if you really want to manage it with yaml, you can use a transformation, see here: https://www.pulumi.com/registry/packages/kubernetes/api-docs/yaml/configfile/
a
thanks for the help, really didnt notice that
w
FWIW, you could also use a text templating engine.