famous-bear-66383
03/30/2020, 8:29 AMdefault namespace
eg. istio injection label. How can I do that ?gorgeous-egg-16927
03/30/2020, 7:13 PMconst ns = new k8s.core.v1.Namespace("default", { metadata: { name: "default" }}, {
import: "default",
})
Update:
const ns = new k8s.core.v1.Namespace("default", { metadata: { name: "default", annotations: {foo: "bar"} }})
$ kubectl get ns default -o yaml
apiVersion: v1
kind: Namespace
metadata:
annotations:
foo: bar
<http://kubectl.kubernetes.io/last-applied-configuration|kubectl.kubernetes.io/last-applied-configuration>: |
{"apiVersion":"v1","kind":"Namespace","metadata":{"annotations":{"foo":"bar"},"name":"default"}}
creationTimestamp: "2020-03-03T22:32:04Z"
name: default
resourceVersion: "702728"
selfLink: /api/v1/namespaces/default
uid: 34ac29f3-7eb1-4f48-b7a0-504f41cf02a2
spec:
finalizers:
- kubernetes
status:
phase: Active
famous-bear-66383
06/04/2020, 3:48 PMconst defaultns = new k8s.core.v1.Namespace("default", {
metadata: {
name: "default",
labels: {
"istio-injection":"enabled" }
}
}, {provider: k8sProvider, import: "default"});
kubernetes:core:Namespace (default):
warning: inputs to import do not match the existing resource; importing this resource will fail
"default"
is the ID needed to import the default namespace from k8s right ?
or how can I get the ID.
Thanks 🙏gorgeous-egg-16927
06/04/2020, 3:56 PMistio-injection
labelfamous-bear-66383
06/04/2020, 4:31 PMgorgeous-egg-16927
06/04/2020, 5:13 PMfamous-bear-66383
06/05/2020, 8:07 AMpulumi up
gorgeous-egg-16927
06/05/2020, 3:25 PMfamous-bear-66383
06/05/2020, 7:42 PM