icy-jordan-58549
08/11/2020, 1:28 PMhelm hooks
? if helm chart has it, there is no way to install itbright-policeman-55860
08/11/2020, 1:52 PMkubectl apply
. I'm trying to use yaml.ConfigGroup
to apply those resources, but Pulumi seems to be unable to update existing resources:
(...)
kubernetes:core:ServiceAccount (kube-system/coredns):
error: resource kube-system/coredns was not successfully created by the Kubernetes API server : serviceaccounts "coredns" already exists
(...)
Any ideas on how to bypass this? Importing those resources would be a tremendous amount of work (6 documents in that YAML file), also seems to be impossible (https://github.com/pulumi/pulumi-kubernetes/issues/1238) and it means doing manual changes and having multiple runs of Pulumi, which is a big no-no for automation.prehistoric-account-60014
08/12/2020, 3:32 PMabundant-airplane-93796
08/13/2020, 1:49 PM--name-template
arg which Pulumi is using under the hood AND unecessarily convoluted names for resources within the cluster.abundant-airplane-93796
08/13/2020, 1:51 PMabundant-airplane-93796
08/13/2020, 1:59 PMancient-megabyte-79588
08/13/2020, 2:32 PMabundant-airplane-93796
08/13/2020, 3:00 PMancient-megabyte-79588
08/13/2020, 3:05 PMabundant-airplane-93796
08/13/2020, 3:11 PMabundant-airplane-93796
08/13/2020, 3:13 PMancient-megabyte-79588
08/13/2020, 3:19 PMancient-megabyte-79588
08/13/2020, 3:19 PMabundant-airplane-93796
08/13/2020, 3:36 PMancient-megabyte-79588
08/13/2020, 3:57 PMfull-dress-10026
08/13/2020, 7:29 PMpulumi up
as part of a CI pipeline?quaint-library-15224
08/13/2020, 7:49 PMpulumi refresh
and update the stack but now every time i try to run pulumi up
i see that according to preview pulumi is about to delete all helm chart resources.
How can i understand the reason for this ? i definitely don't wont to delete those resources from the clusterabundant-airplane-93796
08/14/2020, 12:44 AMmetadata:
annotations:
<http://beta.cloud.google.com/backend-config|beta.cloud.google.com/backend-config>: '{"default": "istio-ingressgateway"}'
<http://cloud.google.com/app-protocols|cloud.google.com/app-protocols>: '{"https":"HTTP2"}'
<http://cloud.google.com/neg|cloud.google.com/neg>: '{"ingress": true}'
<http://cloud.google.com/neg-status|cloud.google.com/neg-status>: '{"network_endpoint_groups":{"443":"k8s1-5487ae62-istio-system-istio-ingressgateway-443-811432aa"},"zones":["us-east1-d"]}'
I'd like to extract the value of the <http://cloud.google.com/neg-status|cloud.google.com/neg-status>
annotation in such a way that I can use it to retrieve a gcp network endpoint group like:
const neg = gcp.compute.getNetworkEndpointGroup({
name: "k8s1-5487ae62-istio-system-istio-ingressgateway-443-811432aa",
zone: "us-east1-d"
})
I'm usually ok working with outputs, but pulling something that's in json in a property of a property has got me beat right nowkind-address-14510
08/21/2020, 7:27 PMkind-address-14510
08/21/2020, 7:28 PMpolite-motherboard-78438
08/23/2020, 2:03 PMkind-mechanic-53546
08/24/2020, 1:20 AMconst eventRouterServiceAccount = new k8s.core.v1.ServiceAccount(
"eventRouterServiceAccount",
{
apiVersion: "v1", // << Remove?
kind: "ServiceAccount", // << Remove?
metadata: {
name: "eventRouter",
namespace: "kube-system",
},
}
);
a) we already know we're creating a ServiceAccount
, b) we're specifying the version twice core.v1.
This is from kube2pulumirhythmic-napkin-82334
08/25/2020, 8:19 AMpulumi_kubernetes
on my mac when trying to `import pulumi_kubernetes`:
ModuleNotFoundError: No module named 'pulumi_kubernetes'
I installed pulumi with brew install pulumi
and additionally use a conda environment.
further information:
• pulumi v2.9.0
• see conda list
output in image attached
PS: pulumi up
with another script where I use only pulumi
and pulumi_aws
works fine!many-psychiatrist-74327
08/26/2020, 11:33 PMConfigFile
.
I’m trying to deploy some existing k8s yaml objects with Pulumi/Python. I’m creating a k8s.yaml.ConfigFile
from my file as shown in this tutorial. However, the tutorial then suggests querying the resources inside the ConfigFile by calling `get_resource(type, name)`[0]. but that function doesn’t exist. Is there a way to “query” the resources inside the ConfigFile in Python?
[0] Code snippet:
guestbook = k8s.yaml.ConfigFile('guestbook', 'guestbook-all-in-one.yaml')
# Export the private cluster IP address of the frontend.
frontend = guestbook.get_resource('v1/Service', 'frontend') # <- fails
wet-noon-14291
08/27/2020, 11:37 AMpulumi up
when I have some ConfigFile
resources. I guess it is because I haven't "authenticated" against the cluster locally. How do I use ConfigFile
without logging in? Do I create ComponentResourceOptions
where I set the Provider
? How do I get the provider from a cluster?many-psychiatrist-74327
08/28/2020, 7:54 PMpulumi.export('ingress-address', ingress.status.load_balancer.ingress[0].hostname)
However, that fails (turns out that ingress.status
is {}
). However, the load balancer’s address shows just fine when running kubectl:
$ kubect get ingress -n test
NAME HOSTS ADDRESS PORTS AGE
ingress-main * <http://bdcc2d51-test-ingressmain-8b89-1677642024.us-east-2.elb.amazonaws.com|bdcc2d51-test-ingressmain-8b89-1677642024.us-east-2.elb.amazonaws.com> 80 10m
great-byte-67992
09/01/2020, 5:21 AMbetter-actor-92669
09/03/2020, 1:27 PMMaster version
1.17.9-gke.1503
The nature of the "Rapid Channel" is that it auto-upgrades the master version, and then a simple change in pulumi config works fine. Problems arise when you try to upgrade the node versions
panic: fatal: An assertion has failed: Expected diff to not require deletion or replacement during Update of urn:pulumi:smth-integration-1::smth-integration-1::gcp:container/cluster:Cluster::mixed-cluster-1
goroutine 144 [running]:
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)>
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.9.1-0.20200825190708-910aa96016cd/go/common/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assertf(0xc000724300|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assertf(0xc000724300>, 0x3b887dd, 0x48, 0xc0012357a8, 0x1, 0x1)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.9.1-0.20200825190708-910aa96016cd/go/common/util/contract/assert.go:33 +0x197
<http://github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.(*Provider).Update(0xc0001ea000|github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.(*Provider).Update(0xc0001ea000>, 0x41492a0, 0xc001001dd0, 0xc000fd0d20, 0xc0001ea000, 0x3620a01, 0xc00101d500)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.7.3/pkg/tfbridge/provider.go:971 +0x81d
<http://github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler.func1(0x41492a0|github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler.func1(0x41492a0>, 0xc001001dd0, 0x39f4e40, 0xc000fd0d20, 0x39f3540, 0x580a850, 0x41492a0, 0xc001001dd0)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.9.1-0.20200825190708-910aa96016cd/proto/go/provider.pb.go:1920 +0x89
<http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x41492a0|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x41492a0>, 0xc001000210, 0x39f4e40, 0xc000fd0d20, 0xc000ffe640, 0xc000ffe660, 0x0, 0x0, 0x410c160, 0xc000210aa0)
/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x2eb
<http://github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler(0x3a67500|github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler(0x3a67500>, 0xc0001ea000, 0x41492a0, 0xc001000210, 0xc000f5f7a0, 0xc000b594a0, 0x41492a0, 0xc001000210, 0xc0006e7800, 0x3613)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.9.1-0.20200825190708-910aa96016cd/proto/go/provider.pb.go:1922 +0x14b
<http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000e3dc0|google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000e3dc0>, 0x4184520, 0xc000702c00, 0xc0013fcd00, 0xc000af1050, 0x57ca978, 0x0, 0x0, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1171 +0x50a
<http://google.golang.org/grpc.(*Server).handleStream(0xc0000e3dc0|google.golang.org/grpc.(*Server).handleStream(0xc0000e3dc0>, 0x4184520, 0xc000702c00, 0xc0013fcd00, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1494 +0xccd
<http://google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000adbba0|google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000adbba0>, 0xc0000e3dc0, 0x4184520, 0xc000702c00, 0xc0013fcd00)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:834 +0xa1
created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:832 +0x204
I use:
pulumi version ==> v2.9.2
Python Modules:
pulumi==2.9.2
pulumi-gcp==3.21.1
pulumi-kubernetes==2.5.0
pulumi-postgresql==2.3.0
pulumi-random==2.3.1
microscopic-car-16538
09/04/2020, 11:43 AMDeployment.Metadata.Name()
returns a pulumi.StringPtrOutput
and I don't have a clue about how to get a string back...
I guess it's pretty obvious but I can't see how to fix that...few-painting-77267
09/06/2020, 4:29 PM