sparse-intern-71089
07/29/2021, 8:22 PMbillowy-army-68599
provider
which can then be passed to your Kubernetes resources!
https://github.com/pulumi/examples/blob/master/aws-ts-eks-hello-world/index.ts#L60
Your pass it to your resource via the helm chart's resource options, so in this case it'd be:
const kongGateway = new k8s.helm.v3.Chart("gateway", {
repo: "kong",
chart: "kong",
// TODO: tear down and change namespace to `kong`
namespace: "default",
fetchOpts:{
repo: "<https://charts.konghq.com/>",
},
values: {
postgresql: {
enabled: true,
}
},
},
providers: { kubernetes: cluster.provider } }
);
billowy-army-68599
busy-journalist-6936
07/29/2021, 9:03 PMbillowy-army-68599
busy-journalist-6936
07/29/2021, 9:10 PMbusy-journalist-6936
07/29/2021, 10:14 PMprovider
cant be garbage. Unless I somehow created the namespace somewhere else after deploying this fresh cluster without remembering.
<http://kongclusterplugins.configuration.konghq.com|kongclusterplugins.configuration.konghq.com> (kubernetes:<http://helm.sh/v3:Chart$kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition|helm.sh/v3:Chart$kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition>)
error: configured Kubernetes cluster is unreachable: unable to load Kubernetes client configuration from kubeconfig file: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
If the cluster has been deleted, you can edit the pulumi state to remove this resource
default/gateway-kong (kubernetes:<http://helm.sh/v3:Chart$kubernetes:apps/v1:Deployment|helm.sh/v3:Chart$kubernetes:apps/v1:Deployment>)
error: configured Kubernetes cluster is unreachable: unable to load Kubernetes client configuration from kubeconfig file: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
If the cluster has been deleted, you can edit the pulumi state to remove this resource
pulumi:pulumi:Stack (KongOnEKS-KongOnEKS):
W0729 22:20:38.072566 2219 loader.go:223] Config not found: /root/.kube/config
error: update failed
billowy-army-68599
busy-journalist-6936
07/29/2021, 10:22 PMbillowy-army-68599
billowy-army-68599
busy-journalist-6936
07/29/2021, 10:23 PMbusy-journalist-6936
07/29/2021, 10:23 PMbillowy-army-68599
billowy-army-68599
busy-journalist-6936
07/29/2021, 10:39 PMbusy-journalist-6936
07/29/2021, 10:39 PMbillowy-army-68599
Now on to learning how to create kubernetes secrets in pulumi before the helm chart deploys.if you define a secret output as an input to the helm chart, this will happen automatically, similar to what you did with the namespace earlier
billowy-army-68599
busy-journalist-6936
07/29/2021, 10:42 PMbillowy-army-68599
busy-journalist-6936
07/29/2021, 10:46 PMkubectl create secret generic \
kong-enterprise-license -n kong \
--from-file=./license
busy-journalist-6936
07/29/2021, 10:47 PM--from-literal
style instead and make the license part of pulumi configbillowy-army-68599