brief-helicopter-28120
08/04/2022, 9:35 AMk8s.yaml.ConfigFile
to deploy CRDs into my EKS cluster (typescript) and I run into issues. Btw I'm new to typescript and as well to pulumi. So please kindly bare with me š
Code:
import * as k8s from "@pulumi/kubernetes";
import * as eks from "@pulumi/eks";
export default {
install_crds(cluster: eks.Cluster){
new k8s.yaml.ConfigFile("argocd_namespace", {
file: "kubernetes_cluster_components/namespaces/argocd-namespace.yaml",
}, {providers: { "kubernetes": cluster.provider }});
}
};
Error:
pulumi:pulumi:Stack k8s-moralis-aws-dev-argo-test running. error: an unhandled error occurred: Program exited with non-zero exit code: -1
I0804 09:23:53.878138 22054 deployment_executor.go:162] deploymentExecutor.Execute(...): exiting provider canceller
Type Name Plan Info
pulumi:pulumi:Stack k8s-moralis-aws-dev-argo-test 1 error; 39 messages
Diagnostics:
pulumi:pulumi:Stack (k8s-moralis-aws-dev-argo-test):
Cloud Provider: aws Stack: aws-dev-argo-test
error: an unhandled error occurred: Program exited with non-zero exit code: -1
The error message is not very descriptive, hence difficult to troubleshoot. Can someone please help me here šsteep-toddler-94095
08/04/2022, 6:11 PMnew k8s.yaml.ConfigFile("argocd_namespace", {
file: "kubernetes_cluster_components/namespaces/argocd-namespace.yaml",
}, {provider: cluster.provider })
if this doesn't work,
⢠what's in the argocd-namespace.yaml
file?
⢠can you double check that the filepath is correct? i think it should be relative to where this file is
⢠is this literally everything that's in your index.ts file?brief-helicopter-28120
08/05/2022, 7:34 AM"error: exec plugin: invalid apiVersion "<http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>"
error. So had to install awscli through brew and update the kubeconfig file again. This fixed my issues.