proud-spoon-58287
08/06/2020, 9:46 AMHi all, I have to update a secret, but `pulumi up`
does not show any changes. If I delete the secret using kubectl it does not get recreated the next time I do `pulumi up``
Only chance I had so far is to destroy the cluster and recreate it (which is bad). I see that destroy has the flag -t, but it seems that the resource name I am using is wrong. Is there a better way to work with this?
proud-spoon-58287
08/06/2020, 2:39 PMbright-policeman-55860
08/07/2020, 1:46 PMbright-policeman-55860
08/07/2020, 2:04 PMbright-policeman-55860
08/07/2020, 3:43 PMbright-policeman-55860
08/10/2020, 4:08 PMkubernetes.core.v1.Service.get("service", "kube-dns",
opts=pulumi.ResourceOptions(provider=kubernetes_provider))
This results in Preview failed: resource 'kube-dns' does not exist
But:
$ kubectl --kubeconfig /tmp/kubeconfig get svc -n kube-system kube-dns
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kube-dns ClusterIP 10.100.0.10 <none> 53/UDP,53/TCP 3d22h
And yes, my kubernetes_provider is using the kube-system
namespacebright-policeman-55860
08/10/2020, 4:21 PMkube-dns
myself, it comes with EKS. I really don't understand how data sources work with Kubernetes, do they even exist?microscopic-arm-19649
08/10/2020, 7:21 PMmicroscopic-arm-19649
08/11/2020, 12:10 PMicy-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.broad-dog-22463
08/12/2020, 12:28 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 PMpolite-motherboard-78438
08/23/2020, 2:03 PMbillowy-army-68599
08/23/2020, 4:51 PM