sparse-school-61365
06/06/2022, 9:36 AMv3.19.2
to install a local chart with golang, and I'm struggling a little with an unhelpful error...
❯ pulumi up
Previewing update (poc):
Type Name Plan Info
pulumi:pulumi:Stack arges-theila-poc-poc
└─ kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> arges-tim 1 error
Diagnostics:
kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> (arges-tim):
error: unrecognized type: string
victorious-exabyte-70545
06/06/2022, 8:31 PMrabbitmq_chart = Chart(
'rabbitmq-chart',
ChartOpts(
resource_prefix=stack_name,
chart='rabbitmq',
version="8.16.2",
fetch_opts={'repo': '<https://charts.bitnami.com/bitnami>'},
values={},
),
ResourceOptions(provider=k8s_provider, ignore_changes=['version'])
)
miniature-wire-6359
06/07/2022, 8:00 AMminiature-wire-6359
06/07/2022, 8:03 AMpowerful-planet-88446
06/07/2022, 9:15 AMglamorous-australia-21342
06/08/2022, 2:15 PMpulumi query
, but I'd like it to execute at pulumi up
. I tried pulumi query
anyways and I get some odd errors -
pulumi query
Error: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
powerful-planet-88446
06/08/2022, 7:14 PMpowerful-planet-88446
06/08/2022, 7:14 PMpowerful-planet-88446
06/08/2022, 7:14 PMfamous-salesclerk-74711
06/08/2022, 9:25 PMpulumi_eks
and in modifying an existing cluster’s VpcCniOptionsArgs
, we’re getting this message in CI/CD (which we’ve never needed kubectl
to run)
Diagnostics:
eks:index:VpcCni (cluster-name):
error: Could not set VPC CNI options: kubectl is missing. See <https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl> for installation instructions.
does anyone know what we might be missing (other than installing kubectl in our remote runners, which seems wrong to do)adamant-terabyte-3965
06/09/2022, 10:10 PMnew k8s.networking.v1.Ingress
and am failing the pulumi up
with this error:
kubernetes:<http://networking.k8s.io/v1:Ingress|networking.k8s.io/v1:Ingress> (api-ingress):
error: resource test/api-ingress was not successfully created by the Kubernetes API server : admission webhook "vingress.elbv2.k8s.aws" denied the request: invalid ingress class: <http://IngressClass.networking.k8s.io|IngressClass.networking.k8s.io> "alb" not found
The way I have set it up is extremely similar to this blog post: https://www.pulumi.com/blog/kubernetes-ingress-with-aws-alb-ingress-controller-and-pulumi-crosswalk/
Does anyone have any idea what is going wrong?brief-vr-24049
06/10/2022, 5:33 AMgorgeous-egg-16927
06/10/2022, 8:44 PMpulumi-kubernetes
provider. You can read the detailed proposal and respond with any comments or questions on that issue.sparse-spring-91820
06/14/2022, 7:08 AMconst cluster = new eks.Cluster('cluster', {
name: 'eks-cluster',
vpcId: vpc.id,
publicSubnetIds: vpc.publicSubnetIds,
privateSubnetIds: vpc.privateSubnetIds,
desiredCapacity: 2,
minSize: 1,
maxSize: 3
});
glamorous-australia-21342
06/14/2022, 3:25 PMjsonObj
isnt blank outside of the output.apply(...
. What am I doing wrong? If I log it inside the output.apply(..
it behaves as expected. Some kind of scope thing I am not understanding I believe.
export function createRbacJson() {
// Generate list of valid resources names
const getK8sApiOutput = new local.Command("get-k8s-api-output", {
create: `kubectl api-resources --no-headers -o wide`,
});
const output = getK8sApiOutput.stdout;
//output.apply(v => console.log(v))
let jsonObj: any = {}
output.apply(row =>
row.split("\n").forEach(function (row) {
const splitRow = row.match(/"[^"]*"|\[[^\][]*]|[^\s\][]+/g)
if (splitRow != null) {
const resourceName = splitRow[0]
// if resource has a shortname skip it
var columnModifier = 0
if (splitRow.length == 6) {
columnModifier++
}
const resourceApi = splitRow[1 + columnModifier]
const namespaced = splitRow[2 + columnModifier]
const resourceVerbs = splitRow[4 + columnModifier]?.replace(/[\[\]']+/g,'').split(/[ ,]+/)
const verbs: string[] = []
resourceVerbs.forEach(verb => {
verbs.push(verb)
});
// console.log(resourceName)
// console.log(resourceApi)
// console.log(verbs)
// console.log(namespaced)
jsonObj[resourceName] = {
api: resourceApi,
verbs: verbs,
namespaced: namespaced
}
}
})
);
const jsonObjOutput = pulumi.output(jsonObj)
return jsonObjOutput.apply(v => console.log(v))
}
Output of createRbacJson()
{}
flat-laptop-90489
06/14/2022, 6:21 PMvictorious-engine-64347
06/16/2022, 7:16 PMcertificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "aws-load-balancer-controller-ca")
magnificent-ambulance-5713
06/17/2022, 3:30 AMhelm.Release
?
~ kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> airflow **updating failed** [diff: ~values]; error: another operation (install/upgrade/rollback) is in progress
Couldn't find any documentation about it 🤔 For now I've destroyed the whole stack & rebuilt it, which is thankfully possible for now, but not later 😅nice-secretary-23177
06/17/2022, 12:42 PMkubernetes.yaml
(ie @pulumi/kubernetes
) module wasn’t working because things weren’t propagating opts.provider
. So I made a workaround that uses local.Command
and setting args.environment.KUBECONFIG
, but now that stopped working too for some reason. It seems to ignore the environment variable (and it tries to use the default kubeconfig file, but luckily I’ve added some guardrails to avoid disasters in case such a bug pops up).
I remember seeing that the propagation bug was fixed. So, I tried to convert to use the builtin yaml methods again, but it looks like nothing in the kubernetes.yaml
module works now, because it complains that map
can’t be called on undefined in yaml/yaml.ts:2993. These are multi-document yaml files (cert manager and aws lb controller), if it matters?nice-secretary-23177
06/17/2022, 12:45 PMkubernetes.yaml
becomes table, then alas, so be it.fast-florist-41572
06/17/2022, 3:18 PMfast-florist-41572
06/17/2022, 3:19 PMmost-lighter-95902
06/19/2022, 12:00 AMmost-lighter-95902
06/19/2022, 12:00 AMerror: TypeError: Cannot read properties of undefined (reading 'map')
at /Users/seungchanlee/Documents/Sidetrek/sidetrek-flyte/node_modules/@pulumi/yaml/yaml.ts:2993:14
at processTicksAndRejections (node:internal/process/task_queues:96:5)
most-lighter-95902
06/19/2022, 12:01 AMmost-lighter-95902
06/19/2022, 12:01 AM"@pulumi/aws": "^5.0.0",
"@pulumi/awsx": "^0.40.0",
"@pulumi/eks": "^0.40.0",
"@pulumi/kubernetes": "^3.19.3",
"@pulumi/pulumi": "^3.22.0",
most-lighter-95902
06/19/2022, 1:07 AMmost-lighter-95902
06/19/2022, 1:08 AMconst metricsServer = new k8s.yaml.ConfigGroup('metrics-server', {
files: '<https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml>',
}, { provider: cluster.provider })
most-lighter-95902
06/19/2022, 1:18 AMmost-lighter-95902
06/19/2022, 1:25 AM/Users/seungchanlee/Documents/Sidetrek/sidetrek-flyte/node_modules/@pulumi/yaml/yaml.ts:2993:14
most-lighter-95902
06/19/2022, 1:25 AM/Users/seungchanlee/Documents/Sidetrek/sidetrek-flyte/node_modules/@pulumi/yaml/yaml.ts:2993:14