Hi ! What is currently the best way to create a `B...
# google-cloud
a
Hi ! What is currently the best way to create a
BackendConfig
(
apiVersion: <http://cloud.google.com/v1|cloud.google.com/v1>
, also see https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#direct_health ) with pulumi ? would
k8s.yaml.ConfigFile
work ?
l
@adorable-action-51248 did you get an answer on this? I need exactly the same. If you found a solution, would you mind sharing? This would save me some cycles. 🙏🏼
a
soo. what i did was pretty ugly…
i created a yaml
with 0 variables. i.e. it didn’t need any processing of variables.
and then loaded that in with ConfigFile and applied it.
i tried preprocess it.
but that wasn’t straight forward.
l
You haven’t tested/tried this then? https://www.pulumi.com/blog/introducing-crd2pulumi/
a
so that works
i used it for used for credentials manager crds
but
for backendservice there aren’t any crd yaml files to import
at least i could not find them
l
schema you mean?
a
yeah
these are built in gke
and not explicitly exposed
hence i needed to apply a yaml file as is
mmh. now that i am thinking about this…
ConfigFile has transformation hooks to postprocess the yaml
mmh
i used these for other things….
i think that could have worked for the backend yaml file as well potentially.
but haven’t done it yet.
l
Thanks for the info. Will have a look at the k8s.yaml.ConfigFile like you did.
đź‘Ť 1