brainy-accountant-88780
03/14/2024, 1:01 PMbillions-xylophone-85957
03/14/2024, 1:10 PMbrainy-accountant-88780
03/14/2024, 2:18 PMbillions-xylophone-85957
03/14/2024, 2:34 PMparent
and dependsOn
etc etc) and may contain platform-specific things (like region for e.g. aws provider or in this case kube cluster config)
You can create a provider from kubeconfig like
const clusterAProvider = new k8s.Provider("foo", {
kubeconfig: clusterAKubeConfig,
}, )
and then give it to your resource like
const service = new k8s.core.v1.Service(`foo-svc`, {
spec: { <svc spec> },
}, {provider: clusterAProvider})
there even may be some syntax sugar to help you, e.g. eks.Cluster
object already has the provider
propertybillions-xylophone-85957
03/14/2024, 2:35 PM