big-potato-91793
12/03/2020, 1:34 PMbored-river-53178
12/03/2020, 11:10 PMNo matching service found for ingress rule: "freepbx.taskrouter.dev.internal/" -> ""
and can't understand why the service name is empty, the service is present and everything works fine besides this pulumi check which leads to a failed deploymentbored-river-53178
12/03/2020, 11:48 PMapiVersion: extensions/v1beta1
to apiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1>
in the ingress definition seemed to solve the issuebored-river-53178
12/03/2020, 11:49 PMbored-river-53178
12/04/2020, 12:07 AMicy-jordan-58549
12/04/2020, 4:07 PMerror: resource kube-system/coredns-custom was not successfully created by the Kubernetes API server : configmaps "coredns-custom" already exists
icy-jordan-58549
12/07/2020, 3:01 PMkubectl apply -f
If resource exists, replace it or create. Thankscolossal-australia-65039
12/07/2020, 10:22 PMroleMappings[*].groups
property somehow. Neither the name of the clusterrole or binding work here (something like system:masters
does work though). Anyone know how i can achieve this?icy-jordan-58549
12/08/2020, 4:44 PMoperator (statefulset)
and when service
resource has been created, I am trying to get it using something like this:
const kc = new k8sClient.KubeConfig();
const watcher = config.servicesK8s.cluster.kubeconfig
.apply(kubeConfig => kc.loadFromString(kubeConfig))
.apply(() => new k8sClient.Watch(kc));
export let serviceName = watcher.apply(w => waitFor(w, 'elastic-es-http'));
export const service = pulumi
.all([namespace.metadata.name, serviceName])
.apply(([ns, name]) =>
k8s.core.v1.Service.get('elastic-svc', `${ns}/${name}`, {
parent: namespace,
dependsOn: [elasticsearch]
})
);
bitter-application-91815
12/10/2020, 7:26 PMbitter-application-91815
12/10/2020, 7:41 PMsteep-angle-29984
12/14/2020, 5:59 PMclever-byte-21551
12/15/2020, 7:21 AMpulumi-kubernetes
to a more up-to-date version. But my stack wasn’t able to refresh if I didn’t have the old plugin version existing on the machine (I’m running in container so I only have the recent plugin version)
Other pulumi provider have this behaviour and I was wondering if this is a bug
Diagnostics:
pulumi:providers:kubernetes (default_2_6_1):
error: no resource plugin 'kubernetes-v2.6.1' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource kubernetes v2.6.1`
(I was upgrading from 2.6.1 to 2.6.3)prehistoric-kite-30979
12/17/2020, 4:49 PMfunc New(ctx *pulumi.Context, options ...pulumi.ResourceOption) error {
_, err := kustomize.NewDirectory(ctx, "vault", kustomize.DirectoryArgs{
Directory: pulumi.String("./kustomize"),
})
return err
}
It appears that local directories are always relative to the main.go, not the library. I think my only option here is to do a full import into Pulumi, right?proud-pizza-80589
12/18/2020, 8:34 AMred-area-47037
12/18/2020, 6:39 PMkubernetes:<http://apiextensions.k8s.io/v1:CustomResourceDefinition|apiextensions.k8s.io/v1:CustomResourceDefinition> (<http://certificates.cert-manager.io|certificates.cert-manager.io>):
error: 1 error occurred:
* the Kubernetes API server reported that "<http://certificates.cert-manager.io|certificates.cert-manager.io>" failed to fully initialize or become live: "" is invalid: patch: Invalid value: ......." : cannot convert int64 to float64
proud-pizza-80589
12/21/2020, 9:51 AMbland-lamp-16797
12/22/2020, 10:47 AM<http://kubernetes-charts.storage.googleapis.com|kubernetes-charts.storage.googleapis.com>
check this blog post:
https://helm.sh/blog/new-location-stable-incubator-charts/rough-oxygen-8318
12/23/2020, 3:53 AMmonkey patch
kubernetes resources that were not created with Pulumi? My use case is: Adding the environment variable AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG=true
for DaemonSet aws-node
inside an AWS EKS Cluster (Step 3 in custom-networking AWS Documentation https://docs.aws.amazon.com/eks/latest/userguide/cni-custom-network.html)prehistoric-kite-30979
12/23/2020, 11:47 AMmap[string]interface{}
into actual Kubernetes objects in go?proud-pizza-80589
12/24/2020, 9:27 AM+ kubernetes:core/v1:Secret beta/ghcr-pull-secret creating 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
141
+ kubernetes:core/v1:Secret beta/ghcr-pull-secret **creating failed** 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
big-potato-91793
01/07/2021, 11:18 PMmagnificent-restaurant-51456
01/13/2021, 10:05 AMprehistoric-arm-87050
01/15/2021, 3:13 PMsparse-gold-89283
01/15/2021, 7:56 PMquiet-wolf-18467
quiet-wolf-18467
quiet-wolf-18467
magnificent-restaurant-51456
01/16/2021, 3:34 PMancient-megabyte-79588
01/19/2021, 12:09 AMvar namespace = new k8s.core.v1.Namespace(defaultNamespaceName, {
metadata: {
name: defaultNamespaceName,
}
}, { provider: config.k8sProvider, import: "releasesplatform" });
This does not work. Possibly I have the import id incorrect?
var namespace = new k8s.core.v1.Namespace(defaultNamespaceName, {
metadata: {
name: defaultNamespaceName,
}
}, { provider: config.k8sProvider, id: "releasesplatform" });
Does not work. again, perhaps an Id problem?
var namespace = k8s.core.v1.Namespace.get(defaultNamespaceName, defaultNamespace);
if (namespace == null) {
// create namespace
}
Doesn't seem to work to get the existing resource either. My code always tries to create. I'm not sure what get
returns if nothing exists though. Intellisense says it should be a namespace
typed object, but might be a promise which would not be null.
Anyway, wondering if anyone else has solved this problem of creating a k8s namespace in one app, and trying to find it in another.